gol4ng/logger

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: go

cache:
  directories:
    - $GOPATH/pkg/mod

# The coverprofile for multiple packages works in go 1.10
# see https://tip.golang.org/doc/go1.10#test
go:
  - master

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 --race -gcflags=-l -coverprofile c.out ./...

after_script:
  - CC_TEST_REPORTER_ID=$CC_TEST_REPORTER_ID ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT