No Description

.travis.yml 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. language: go
  2. go_import_path: github.com/google/pprof
  3. matrix:
  4. include:
  5. - os: linux
  6. go: 1.7.x
  7. - os: linux
  8. go: 1.8.x
  9. - os: linux
  10. go: master
  11. - os: osx
  12. osx_image: xcode6.4
  13. go: 1.8.x
  14. - os: osx
  15. osx_image: xcode6.4
  16. go: master
  17. - os: osx
  18. osx_image: xcode7.3
  19. go: 1.8.x
  20. - os: osx
  21. osx_image: xcode7.3
  22. go: master
  23. - os: osx
  24. osx_image: xcode8.3
  25. go: 1.8.x
  26. - os: osx
  27. osx_image: xcode8.3
  28. go: master
  29. addons:
  30. apt:
  31. packages:
  32. - graphviz
  33. before_install:
  34. - go get -u github.com/golang/lint/golint honnef.co/go/tools/cmd/...
  35. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
  36. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install graphviz; fi
  37. script:
  38. - gofmtdiff=$(gofmt -s -d .) && if [ -n "$gofmtdiff" ]; then printf 'gofmt -s found:\n%s\n' "$gofmtdiff" && exit 1; fi
  39. - golintlint=$(golint ./...) && if [ -n "$golintlint" ]; then printf 'golint found:\n%s\n' "$golintlint" && exit 1; fi
  40. - go tool vet -all .
  41. - gosimple ./...
  42. - ./test.sh
  43. after_success:
  44. - bash <(curl -s https://codecov.io/bash)