Skip to content

Commit

Permalink
issue #134: experiment with cc-test-reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilsk committed Aug 8, 2019
1 parent fa3882f commit c000540
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ cache:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod

env:
global:
- CODECLIMATE=https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
- GO111MODULE=on

go:
- master
- 1.x
Expand All @@ -16,9 +21,6 @@ go:
- 1.11.x
- 1.12.x

before_install:
- export CODECLIMATE=https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64

before_script:
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then curl -L $CODECLIMATE > ./cc-test-reporter; fi
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then chmod +x ./cc-test-reporter; fi
Expand All @@ -28,7 +30,9 @@ script:
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then make test-with-coverage-profile; else make test; fi

after_script:
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then ./cc-test-reporter after-build -t gocov --exit-code $TRAVIS_TEST_RESULT; fi
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then export EXIT_CODE=$TRAVIS_TEST_RESULT; fi
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then ./cc-test-reporter format-coverage -t gocov -p $(go list -m) c.out; fi
- if [[ $TRAVIS_GO_VERSION == 1.12* ]]; then ./cc-test-reporter upload-coverage; fi

notifications:
slack: octolab:1eMS7IqOArBipiu31jYVd0cN

0 comments on commit c000540

Please sign in to comment.