Commit 5555d41d by Ned Batchelder

OK, all the phases should have messages.

parent 61f13594
...@@ -12,21 +12,23 @@ task :install_prereqs => [:install_node_prereqs, :install_ruby_prereqs, :install ...@@ -12,21 +12,23 @@ task :install_prereqs => [:install_node_prereqs, :install_ruby_prereqs, :install
desc "Install all node prerequisites for the lms and cms" desc "Install all node prerequisites for the lms and cms"
task :install_node_prereqs => "ws:migrate" do task :install_node_prereqs => "ws:migrate" do
when_changed('', 'package.json') do unchanged = 'Node requirements unchanged, nothing to install'
when_changed(unchanged, 'package.json') do
sh('npm install') sh('npm install')
end unless ENV['NO_PREREQ_INSTALL'] end unless ENV['NO_PREREQ_INSTALL']
end end
desc "Install all ruby prerequisites for the lms and cms" desc "Install all ruby prerequisites for the lms and cms"
task :install_ruby_prereqs => "ws:migrate" do task :install_ruby_prereqs => "ws:migrate" do
when_changed('', 'Gemfile') do unchanged = 'Ruby requirements unchanged, nothing to install'
when_changed(unchanged, 'Gemfile') do
sh('bundle install') sh('bundle install')
end unless ENV['NO_PREREQ_INSTALL'] end unless ENV['NO_PREREQ_INSTALL']
end end
desc "Install all python prerequisites for the lms and cms" desc "Install all python prerequisites for the lms and cms"
task :install_python_prereqs => "ws:migrate" do task :install_python_prereqs => "ws:migrate" do
unchanged = 'Requirements files unchanged, nothing to install' unchanged = 'Python requirements unchanged, nothing to install'
when_changed(unchanged, 'requirements/**/*') do when_changed(unchanged, 'requirements/**/*') do
ENV['PIP_DOWNLOAD_CACHE'] ||= '.pip_download_cache' ENV['PIP_DOWNLOAD_CACHE'] ||= '.pip_download_cache'
sh('pip install --exists-action w -r requirements/edx/base.txt') sh('pip install --exists-action w -r requirements/edx/base.txt')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment