.travis.yml
language: go
go:
- "1.9"
- "1.10.x"
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:
- go test -coverprofile c.out ./...
after_script:
- ./cc-test-reporter after-build -t gocov --exit-code $TRAVIS_TEST_RESULT
env:
global:
- CC_TEST_REPORTER_ID=f62634f496a405cdbfca1472c1626c67ef7531fafa54c7944d2738c8ffa1c706