diaspora_federation/test/scripts/travis.sh
2017-04-04 22:14:13 +02:00

15 lines
343 B
Bash
Executable file

#!/usr/bin/env bash
set -x
if [[ ${TRAVIS_RUBY_VERSION} == "2.1" ]]; then
# ruby 2.1
export NO_COVERAGE="true" # No coverage for rails 4, because controller specs are disabled
bundle exec rake --trace
else
# ruby >= 2.2
bundle exec rake --trace
test_exit_code=$?
bundle exec codeclimate-test-reporter
exit $test_exit_code
fi