.travis.yml 719 B

12345678910111213141516171819202122232425262728293031
  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. - tip
  9. matrix:
  10. fast_finish: true
  11. before_install:
  12. - go get golang.org/x/tools/cmd/vet
  13. - go get golang.org/x/tools/cmd/cover
  14. - go get github.com/golang/lint/golint
  15. - go get github.com/mattn/goveralls
  16. install:
  17. - go get -d -v ./... && go build -v ./...
  18. script:
  19. - go vet -x ./...
  20. - $HOME/gopath/bin/golint ./...
  21. - go test -v ./...
  22. - go test -covermode=count -coverprofile=profile.cov .
  23. after_script:
  24. - $HOME/gopath/bin/goveralls -coverprofile=profile.cov -service=travis-ci