.travis.yml
raw| 1 | sudo: false |
| 2 | |
| 3 | language: go |
| 4 | |
| 5 | go: |
| 6 | - '1.10.x' |
| 7 | |
| 8 | install: |
| 9 | - go get -u github.com/golang/lint/golint |
| 10 | |
| 11 | script: |
| 12 | - test -z "$(go fmt -s -l -w ./... | tee /dev/stderr)" |
| 13 | - golint -set_exit_status ./... |
| 14 | - go build -v ./... |
| 15 | - go test ./... -race -coverprofile=coverage.txt -covermode=atomic |
| 16 | |
| 17 | after_success: |
| 18 | - bash <(curl -s https://codecov.io/bash) |