.travis.yml 550 B

1234567891011121314151617181920212223
  1. language: go
  2. go:
  3. - 1.x
  4. - tip
  5. matrix:
  6. allow_failures:
  7. - go: tip
  8. fast_finish: true
  9. before_install:
  10. - "if [[ $TRAVIS_GO_VERSION == 1.10 ]]; then go get -v github.com/golang/lint/golint; fi"
  11. install:
  12. - go get -v -t ./...
  13. - go get -u github.com/mholt/caddy
  14. - go get -u github.com/oschwald/maxminddb-golang
  15. script:
  16. - go test .
  17. - "if [[ $TRAVIS_GO_VERSION == 1.10 ]]; then go get -v github.com/golang/lint/golint; fi"
  18. - "if [[ $TRAVIS_GO_VERSION == 1.10 ]]; then go vet ./...; fi"
  19. - "if [[ $TRAVIS_GO_VERSION == 1.10 ]]; then golint .; fi"