.travis.yml 609 B

12345678910111213141516171819
  1. language: go
  2. go:
  3. - "1.x" # use the latest Go release
  4. env:
  5. - GO111MODULE=on
  6. before_script:
  7. - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.15.0
  8. script:
  9. - golangci-lint run ./...
  10. # - rm -rf examples # Remove examples, no test coverage for them
  11. - go test -coverpkg=$(go list ./... | tr '\n' ',') -coverprofile=cover.out -v -race -covermode=atomic ./...
  12. - bash <(curl -s https://codecov.io/bash)
  13. - bash .github/assert-contributors.sh
  14. - bash .github/lint-disallowed-functions-in-library.sh
  15. - bash .github/lint-commit-message.sh