Install Python prereqs before running doc and i18n tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user