Commit 50fed0ac by Will Daly

Merge pull request #2469 from edx/will/doc-and-i18n-test-prereqs

Install Python prereqs before running doc and i18n tests
parents 70762d1a 6f080b2f
...@@ -46,7 +46,7 @@ end ...@@ -46,7 +46,7 @@ end
# Run documentation tests # Run documentation tests
desc "Run documentation tests" desc "Run documentation tests"
task :test_docs do task :test_docs => :install_python_prereqs do
# Be sure that sphinx can build docs w/o exceptions. # Be sure that sphinx can build docs w/o exceptions.
test_message = "If a docs test fails, you should run '%s' and look at whole output and fix exceptions. test_message = "If a docs test fails, you should run '%s' and look at whole output and fix exceptions.
(You shouldn't fix rst warnings and errors for this to pass, just get rid of exceptions.)" (You shouldn't fix rst warnings and errors for this to pass, just get rid of exceptions.)"
......
...@@ -63,7 +63,7 @@ namespace :i18n do ...@@ -63,7 +63,7 @@ namespace :i18n do
end end
desc "Run tests for the internationalization library" desc "Run tests for the internationalization library"
task :test => [I18N_REPORT_DIR, :clean_reports_dir] do task :test => [:install_python_prereqs, I18N_REPORT_DIR, :clean_reports_dir] do
pythonpath_prefix = "PYTHONPATH=#{REPO_ROOT}/i18n:$PYTHONPATH" pythonpath_prefix = "PYTHONPATH=#{REPO_ROOT}/i18n:$PYTHONPATH"
test_sh("i18n", "#{pythonpath_prefix} nosetests #{REPO_ROOT}/i18n/tests --with-xunit --xunit-file=#{I18N_XUNIT_REPORT}") test_sh("i18n", "#{pythonpath_prefix} nosetests #{REPO_ROOT}/i18n/tests --with-xunit --xunit-file=#{I18N_XUNIT_REPORT}")
end end
......
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