.travis.yml 1017 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. - 1.12.x
  10. - master
  11. env:
  12. global:
  13. - GO111MODULE=on
  14. before_install:
  15. - go get -t -v ./...
  16. - go get -t -v github.com/stretchr/testify/...
  17. # This is the script for the matrix tests (ran with each version of go)
  18. script: |
  19. ./.travis/setup-integ.sh
  20. ./.travis/tests.sh
  21. after_success:
  22. - bash <(curl -s https://codecov.io/bash)
  23. # These are individual jobs unrelated to the matrix tests
  24. jobs:
  25. include:
  26. - name: Generator/main entrypoint drift
  27. script: ./.travis/check-generator-main.sh
  28. - name: license headers
  29. before_install: go get -u github.com/u-root/u-root/tools/checklicenses
  30. script: checklicenses -c .travis/checklicenses_config.json
  31. - name: golangci-lint
  32. before_install: go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
  33. script: golangci-lint run