diff --git a/test/scripts/travis.sh b/test/scripts/travis.sh index 9b415cc..81325bf 100755 --- a/test/scripts/travis.sh +++ b/test/scripts/travis.sh @@ -14,17 +14,17 @@ if [[ ${BUNDLE_GEMFILE} =~ .*test/gemfiles/.*.Gemfile ]]; then export NO_COVERAGE="true" bundle exec rake --trace else - if [[ -n ${CODECLIMATE_REPO_TOKEN} ]]; then + if [[ -n ${CC_TEST_REPORTER_ID} ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter chmod +x ./cc-test-reporter - ./cc-test-reporter before-build --id ${CODECLIMATE_REPO_TOKEN} + ./cc-test-reporter before-build fi bundle exec rake --trace test_exit_code=$? - if [[ -n ${CODECLIMATE_REPO_TOKEN} ]]; then - ./cc-test-reporter after-build --id ${CODECLIMATE_REPO_TOKEN} --exit-code ${test_exit_code} + if [[ -n ${CC_TEST_REPORTER_ID} ]]; then + ./cc-test-reporter after-build --exit-code ${test_exit_code} fi exit ${test_exit_code}