.travis.yml 1011 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. language: go
  2. os: linux
  3. dist: bionic
  4. # The first element in this list will be the default for the non-matrix jobs,
  5. # so you usually want the latest version first
  6. go:
  7. - 1.14.x
  8. - 1.13.x
  9. - master
  10. env:
  11. global:
  12. - GO111MODULE=on
  13. before_install:
  14. - go get -t -v ./...
  15. - go get -t -v github.com/stretchr/testify/...
  16. # This is the script for the matrix tests (ran with each version of go)
  17. script: |
  18. ./.travis/setup-integ.sh
  19. ./.travis/tests.sh
  20. after_success:
  21. - bash <(curl -s https://codecov.io/bash)
  22. # These are individual jobs unrelated to the matrix tests
  23. jobs:
  24. include:
  25. - name: Generator/main entrypoint drift
  26. script: ./.travis/check-generator-main.sh
  27. - name: license headers
  28. before_install: go get -u github.com/u-root/u-root/tools/checklicenses
  29. script: checklicenses -c .travis/checklicenses_config.json
  30. - name: golangci-lint
  31. before_install: go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.27.0
  32. script: golangci-lint run