You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
589 B

  1. sudo: false
  2. language: go
  3. go:
  4. - "stable"
  5. - "1.11.x"
  6. - "1.10.x"
  7. - "1.9.x"
  8. matrix:
  9. include:
  10. - go: "stable"
  11. env: GOLINT=true
  12. allow_failures:
  13. - go: tip
  14. fast_finish: true
  15. before_install:
  16. - if [ ! -z "${GOLINT}" ]; then go get -u golang.org/x/lint/golint; fi
  17. script:
  18. - go test --race ./...
  19. after_script:
  20. - test -z "$(gofmt -s -l -w . | tee /dev/stderr)"
  21. - if [ ! -z "${GOLINT}" ]; then echo running golint; golint --set_exit_status ./...; else echo skipping golint; fi
  22. - go vet ./...
  23. os:
  24. - linux
  25. - osx
  26. - windows
  27. notifications:
  28. email: false