From d8209cf3a93220b779070741fce96256ad856f7b Mon Sep 17 00:00:00 2001 From: cmrd Senya Date: Tue, 17 Jan 2017 21:51:54 +0200 Subject: [PATCH] Fix CI script false positive return code For Ruby >= 2.2 travis.sh returned 0 even when the rspec test suite has failed. This commit passes the return value from the test suite as the CI script return value. --- test/scripts/travis.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/scripts/travis.sh b/test/scripts/travis.sh index c08f7e7..0a75aff 100755 --- a/test/scripts/travis.sh +++ b/test/scripts/travis.sh @@ -9,5 +9,7 @@ if [[ ${TRAVIS_RUBY_VERSION} == "2.1" ]]; then else # ruby >= 2.2 bundle exec rake --trace + test_exit_code=$? bundle exec codeclimate-test-reporter + exit $test_exit_code fi