.travis.yml 640 B

1234567891011121314151617181920212223242526272829303132
  1. # Travis CI (http://travis-ci.org/) is a continuous integration
  2. # service for open source projects. This file configures it
  3. # to run unit tests for docopt-go.
  4. language: go
  5. go:
  6. - 1.4
  7. - 1.5
  8. - 1.6
  9. - 1.7
  10. - 1.8
  11. - 1.9
  12. - tip
  13. matrix:
  14. fast_finish: true
  15. before_install:
  16. - go get golang.org/x/tools/cmd/cover
  17. - go get github.com/mattn/goveralls
  18. install:
  19. - go get -d -v ./... && go build -v ./...
  20. script:
  21. - go vet -x ./...
  22. - go test -v ./...
  23. - go test -covermode=count -coverprofile=profile.cov .
  24. after_script:
  25. - $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci