summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
Diffstat (limited to 'ci')
-rw-r--r--ci/jenkins_run_tests.bat8
-rwxr-xr-xci/jenkins_run_tests.sh12
2 files changed, 20 insertions, 0 deletions
diff --git a/ci/jenkins_run_tests.bat b/ci/jenkins_run_tests.bat
new file mode 100644
index 0000000000..445798090c
--- /dev/null
+++ b/ci/jenkins_run_tests.bat
@@ -0,0 +1,8 @@
+set PATH=C:\Ruby192\bin;%PATH%
+
+REM Chef 10 contains the client in the chef/ sub-directory
+cd chef
+
+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..5e5078042d
--- /dev/null
+++ b/ci/jenkins_run_tests.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+export PATH=/usr/local/bin:$PATH
+
+# Chef 10 contains the client in the chef/ sub-directory
+cd chef
+
+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;