Use new Beta CC Test Coverage Reporter
This commit is contained in:
parent
92ce4eacf8
commit
28d63e2633
1 changed files with 12 additions and 2 deletions
|
|
@ -14,8 +14,18 @@ if [[ ${BUNDLE_GEMFILE} =~ .*test/gemfiles/.*.Gemfile ]]; then
|
||||||
export NO_COVERAGE="true"
|
export NO_COVERAGE="true"
|
||||||
bundle exec rake --trace
|
bundle exec rake --trace
|
||||||
else
|
else
|
||||||
|
if [[ -n ${CODECLIMATE_REPO_TOKEN} ]]; 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}
|
||||||
|
fi
|
||||||
|
|
||||||
bundle exec rake --trace
|
bundle exec rake --trace
|
||||||
test_exit_code=$?
|
test_exit_code=$?
|
||||||
bundle exec codeclimate-test-reporter
|
|
||||||
exit $test_exit_code
|
if [[ -n ${CODECLIMATE_REPO_TOKEN} ]]; then
|
||||||
|
./cc-test-reporter after-build --id ${CODECLIMATE_REPO_TOKEN} --exit-code ${test_exit_code}
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit ${test_exit_code}
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue