-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change ensures the bat file is in sync with what we have in opscode/chef.
- Loading branch information
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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% |