.travis.yml 782 B

123456789101112131415161718192021222324252627282930313233
  1. language: go
  2. env:
  3. global:
  4. - VET_VERSIONS="1.6 1.7 1.8 1.9 1.10 tip"
  5. - LINT_VERSIONS="1.7 1.8 1.9 1.10 tip"
  6. go:
  7. - "1.2"
  8. - "1.3"
  9. - "1.4"
  10. - "1.5"
  11. - "1.6"
  12. - "1.7"
  13. - "1.8"
  14. - "1.9"
  15. - "1.10"
  16. - tip
  17. matrix:
  18. fast_finish: true
  19. allow_failures:
  20. - go: tip
  21. go_import_path: gopkg.in/ldap.v2
  22. install:
  23. - go get gopkg.in/asn1-ber.v1
  24. - go get gopkg.in/ldap.v2
  25. - go get code.google.com/p/go.tools/cmd/cover || go get golang.org/x/tools/cmd/cover
  26. - go get github.com/golang/lint/golint || true
  27. - go build -v ./...
  28. script:
  29. - make test
  30. - make fmt
  31. - if [[ "$VET_VERSIONS" == *"$TRAVIS_GO_VERSION"* ]]; then make vet; fi
  32. - if [[ "$LINT_VERSIONS" == *"$TRAVIS_GO_VERSION"* ]]; then make lint; fi