diff options
author | Seth Chisamore <schisamo@opscode.com> | 2013-12-05 16:32:53 -0500 |
---|---|---|
committer | Seth Chisamore <schisamo@opscode.com> | 2013-12-05 16:32:53 -0500 |
commit | 968d29d2e9b6fc5dc3fcba6eb134a2202204237a (patch) | |
tree | 9b912645553eafc409603647353caea7a985e878 /ci | |
parent | 0f4063373b2d40308687d9d62da9c3c07288c112 (diff) | |
download | ohai-968d29d2e9b6fc5dc3fcba6eb134a2202204237a.tar.gz |
Clean up `jenkins_run_tests.bat`
This change ensures the bat file is in sync with what we have in
opscode/chef.
Diffstat (limited to 'ci')
-rw-r--r-- | ci/jenkins_run_tests.bat | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/ci/jenkins_run_tests.bat b/ci/jenkins_run_tests.bat index 4d1b1d14..d87e1e72 100644 --- a/ci/jenkins_run_tests.bat +++ b/ci/jenkins_run_tests.bat @@ -1,9 +1,16 @@ -set PATH=C:\Ruby192\bin;%PATH% - ruby -v -call bundle install --binstubs --without docgen --path vendor/bundle || ( call rm Gemfile.lock && call bundle install --binstubs --path vendor/bundle ) -ruby bin\rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f documentation spec/functional spec/unit spec/stress + +call bundle check + +if %ERRORLEVEL% NEQ 0 ( + call rm Gemfile.lock + call bundle install --without docgen --path vendor/bundle +) + +bundle exec rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f documentation spec + set RSPEC_ERRORLVL=%ERRORLEVEL% +set RSPEC_ERRORLVL=%ERRORLEVEL% REM Return the error level from rspec exit /B %RSPEC_ERRORLVL% |