Skip to content

Commit

Permalink
Clean up jenkins_run_tests.bat
Browse files Browse the repository at this point in the history
This change ensures the bat file is in sync with what we have in 
opscode/chef.
  • Loading branch information
schisamo committed Dec 5, 2013
1 parent 0f40633 commit 968d29d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions ci/jenkins_run_tests.bat
Original file line number Diff line number Diff line change
@@ -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%

0 comments on commit 968d29d

Please sign in to comment.