From 6f080b2fcac9974a15d1475a4d0a35e33a0b9332 Mon Sep 17 00:00:00 2001 From: Will Daly Date: Tue, 4 Feb 2014 20:19:11 -0500 Subject: [PATCH] Install Python prereqs before running doc and i18n tests --- rakelib/docs.rake | 2 +- rakelib/i18n.rake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rakelib/docs.rake b/rakelib/docs.rake index 7fecb6dcbe..fac8bbc9cd 100644 --- a/rakelib/docs.rake +++ b/rakelib/docs.rake @@ -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.)" diff --git a/rakelib/i18n.rake b/rakelib/i18n.rake index 789ccd0e4f..337f4f32e4 100644 --- a/rakelib/i18n.rake +++ b/rakelib/i18n.rake @@ -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