Nessuna descrizione

.travis.yml 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Once https://github.com/actions/setup-go/pull/34 is finished, we can remove
  2. # travis.ci altogether and move everything to Github Action.
  3. language: go
  4. go_import_path: github.com/google/pprof
  5. matrix:
  6. include:
  7. - os: linux
  8. go: master
  9. - os: osx
  10. osx_image: xcode10.3
  11. go: master
  12. - os: osx
  13. osx_image: xcode11
  14. go: master
  15. - os: osx
  16. osx_image: xcode11.1
  17. go: master
  18. - os: osx
  19. osx_image: xcode11.2
  20. go: master
  21. - os: osx
  22. osx_image: xcode11.3
  23. go: master
  24. - os: osx
  25. osx_image: xcode11.4
  26. go: master
  27. - os: osx
  28. osx_image: xcode11.5
  29. go: master
  30. - os: osx
  31. osx_image: xcode11.6
  32. go: master
  33. addons:
  34. apt:
  35. packages:
  36. - graphviz
  37. homebrew:
  38. packages:
  39. - graphviz
  40. update: true
  41. before_install:
  42. # Do not let tools interfere with the main module's go.mod
  43. - env GO111MODULE=off go get -u golang.org/x/lint/golint honnef.co/go/tools/cmd/...
  44. script:
  45. - gofmtdiff=$(gofmt -s -d .) && if [ -n "$gofmtdiff" ]; then printf 'gofmt -s found:\n%s\n' "$gofmtdiff" && exit 1; fi
  46. - golintlint=$(golint ./...) && if [ -n "$golintlint" ]; then printf 'golint found:\n%s\n' "$golintlint" && exit 1; fi
  47. - go vet -all ./...
  48. - ./test.sh
  49. # Check still works in GOPATH mode.
  50. - env GO111MODULE=off go get -d . && go test -v ./...
  51. after_success:
  52. - bash <(curl -s https://codecov.io/bash)