blob: a1ed4858c83b4b4d66d2d4f3f2857a8aa153afef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
set PATH=C:\Ruby192\bin;%PATH%
REM Chef 10 contains the client in the chef/ sub-directory
cd chef
ruby -v
call bundle install --binstubs --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
set RSPEC_ERRORLVL=%ERRORLEVEL%
REM place rspec output back in jenkins working directory
move test.xml ..
REM Return the error level from rspec
exit /B %RSPEC_ERRORLVL%
|