.travis.yml 530 B

1234567891011121314151617181920
  1. language: go
  2. matrix:
  3. include:
  4. - go: "1.13.x"
  5. - go: "1.14.x"
  6. - go: "tip"
  7. env:
  8. - LINT=true
  9. - COVERAGE=true
  10. install:
  11. - if [ "$LINT" == true ]; then go get -u golang.org/x/lint/golint/... ; else echo 'skipping lint'; fi
  12. - go get -u github.com/stretchr/testify/...
  13. script:
  14. - make test
  15. - go build ./...
  16. - if [ "$LINT" == true ]; then make lint ; else echo 'skipping lint'; fi
  17. - if [ "$COVERAGE" == true ]; then make cover && bash <(curl -s https://codecov.io/bash) ; else echo 'skipping coverage'; fi