.travis.yml 663 B

12345678910111213141516171819202122
  1. language: go
  2. go:
  3. - 1.7.x
  4. - 1.8.x
  5. - 1.9.x
  6. - 1.10.x
  7. - master
  8. go_import_path: gopkg.in/jcmturner/rpc.v1
  9. before_script:
  10. - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
  11. script:
  12. - test -z $(gofmt -s -d -l -e $GO_FILES | tee /dev/fd/2 | xargs | sed 's/\s//g') # Fail if a .go file hasn't been formatted with gofmt
  13. - go vet ./... # go vet is the official Go static analyzer
  14. #- golint -set_exit_status $(go list ./...) # golint to be added
  15. - go test -v -race -tags="integration" ./... # Run all the tests with the race detector enabled and integration tests
  16. - GOARCH=386 go test -v -tags="integration" ./... # 32bit testing