blob: 0f4af0b06f40d6cbe3f61ad4a409e894a78e5b5d (
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 --without docgen server --path vendor/bundle || ( call rm Gemfile.lock && call bundle install -without docgen server --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%
|