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
# 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.
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.)"
......
......@@ -63,7 +63,7 @@ namespace :i18n do
end
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"
test_sh("i18n", "#{pythonpath_prefix} nosetests #{REPO_ROOT}/i18n/tests --with-xunit --xunit-file=#{I18N_XUNIT_REPORT}")
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