summaryrefslogtreecommitdiff
path: root/ci/jenkins_run_tests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/jenkins_run_tests.sh')
-rwxr-xr-xci/jenkins_run_tests.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/ci/jenkins_run_tests.sh b/ci/jenkins_run_tests.sh
new file mode 100755
index 00000000..5bf7def0
--- /dev/null
+++ b/ci/jenkins_run_tests.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+export PATH=$PATH:/usr/local/bin
+
+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 --without docgen --path vendor/bundle || ( rm Gemfile.lock && bundle install --path vendor/bundle )
+bundle exec rspec -r rspec_junit_formatter -f RspecJunitFormatter -o test.xml -f documentation spec;
+RSPEC_RETURNCODE=$?
+
+# exit with the result of running rspec
+exit $RSPEC_RETURNCODE