Commit 834cfbdb authored by Seth Chisamore's avatar Seth Chisamore
Browse files

Merge pull request #32 from opscode/fix-windows-tests

Fix windows tests
parents 73d847fd 6af6a847
source :rubygems
source 'https://rubygems.org'
gemspec :name => "mixlib-shellout"
group(:test) do
......
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
set RSPEC_ERRORLVL=%ERRORLEVEL%
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%
REM Return the error level from rspec
exit /B %RSPEC_ERRORLVL%
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment