diff options
author | Bryan McLellan <btm@opscode.com> | 2012-11-13 09:33:47 -0800 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2012-11-13 10:19:19 -0800 |
commit | ea28e343db64d9dbee57707e81e19342c2493365 (patch) | |
tree | d42b241c7fbd358277583116b8f1c7ef4a2929b2 /ci/jenkins_run_tests.sh | |
parent | 04fb4c8fd275441e9d6d55273fffe3b349ac6cd4 (diff) | |
download | chef-ea28e343db64d9dbee57707e81e19342c2493365.tar.gz |
Place script in repo for running CI tests
Chef 10 and 11 differ in directory structure so lets add a script to ease that
This also exposes our testing a bit so other people know what we are doing
interally.
This commit excludes the 'cd chef' step in 10-stable
Diffstat (limited to 'ci/jenkins_run_tests.sh')
-rwxr-xr-x | ci/jenkins_run_tests.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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; |