From 105448f2baab203f0280e550fdb4bc64087d46cf Mon Sep 17 00:00:00 2001 From: Azareal Date: Mon, 30 Jul 2018 13:48:30 +1000 Subject: [PATCH] Experiment with Code Climate on Travis. --- .travis.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.travis.yml b/.travis.yml index fb30c1ef..05162db8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,6 @@ +env: + global: + - CC_TEST_REPORTER_ID=38ad11f95f28b1d33c9c31467f9eb5eb4e336e4e0e36046c86a4f7ff6e4c3977 language: go go: - "1.10" @@ -13,6 +16,12 @@ before_install: - ./update-deps-linux - ./dev-update-travis install: true +before_script: + - 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 script: ./run-linux-tests +after_script: + - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT addons: mariadb: '10.0' \ No newline at end of file