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.
This commit is contained in:
parent
04027d1b60
commit
d8209cf3a9
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue