From ea28e343db64d9dbee57707e81e19342c2493365 Mon Sep 17 00:00:00 2001 From: Bryan McLellan Date: Tue, 13 Nov 2012 09:33:47 -0800 Subject: 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 --- ci/jenkins_run_tests.bat | 5 +++++ ci/jenkins_run_tests.sh | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 ci/jenkins_run_tests.bat create mode 100755 ci/jenkins_run_tests.sh (limited to 'ci') 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; -- cgit v1.2.1