summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeth Chisamore <schisamo@opscode.com>2013-12-05 13:55:40 -0800
committerSeth Chisamore <schisamo@opscode.com>2013-12-05 13:55:40 -0800
commit834cfbdb98975845a44e9a11a4b8477386cf3ec8 (patch)
tree164bee139d3370e38d6e292145928a3bb83dd367
parent73d847fd4e51a46d7f79d0bc847da91988834ce5 (diff)
parent6af6a847139900353c986a8284067fbc7aaa38f2 (diff)
downloadmixlib-shellout-834cfbdb98975845a44e9a11a4b8477386cf3ec8.tar.gz
Merge pull request #32 from opscode/fix-windows-tests
Fix windows tests
-rw-r--r--Gemfile3
-rw-r--r--ci/jenkins_run_tests.bat15
2 files changed, 12 insertions, 6 deletions
diff --git a/Gemfile b/Gemfile
index c1b379a..86160d0 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,4 +1,5 @@
-source :rubygems
+source 'https://rubygems.org'
+
gemspec :name => "mixlib-shellout"
group(:test) do
diff --git a/ci/jenkins_run_tests.bat b/ci/jenkins_run_tests.bat
index 4d1b1d1..9483952 100644
--- a/ci/jenkins_run_tests.bat
+++ b/ci/jenkins_run_tests.bat
@@ -1,9 +1,14 @@
-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%