.travis.yml
sudo: false
language: go
go:
- 1.14.x
env:
global:
- CC_TEST_REPORTER_ID=7a207ad909b0550675accf2b0f3cc5f60b0a1f8cb42a415ab1d3519654d6cba1
before_script:
- go vet ./...
- 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:
- go test -coverprofile c.out ./...
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT