diff options
-rw-r--r-- | ci/jenkins_run_tests.bat | 5 | ||||
-rwxr-xr-x | ci/jenkins_run_tests.sh | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/ci/jenkins_run_tests.bat b/ci/jenkins_run_tests.bat new file mode 100644 index 0000000000..7d3a2d7c0d --- /dev/null +++ b/ci/jenkins_run_tests.bat @@ -0,0 +1,5 @@ +set PATH=C:\Ruby192\bin;%PATH% + +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/unit spec/functional diff --git a/ci/jenkins_run_tests.sh b/ci/jenkins_run_tests.sh new file mode 100755 index 0000000000..ce8e1934c9 --- /dev/null +++ b/ci/jenkins_run_tests.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +export PATH=/usr/local/bin:$PATH + +ruby -v; +# remove the Gemfile.lock and try again if bundler fails. +# This should take care of Gemfile changes that result in "bad" bundles without forcing us to rebundle every time +bundle install --binstubs --path vendor/bundle || ( rm Gemfile.lock && bundle install --binstubs --path vendor/bundle ) +bin/rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f documentation spec; |