暫無描述

.travis.yml 767B

12345678910111213141516171819202122232425262728293031
  1. language: go
  2. go:
  3. - 1.7.x
  4. - 1.8.x
  5. - master
  6. go_import_path: github.com/google/pprof
  7. os:
  8. - linux
  9. - osx
  10. addons:
  11. apt:
  12. packages:
  13. - graphviz
  14. before_install:
  15. - go get -u github.com/golang/lint/golint honnef.co/go/tools/cmd/...
  16. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
  17. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install graphviz; fi
  18. script:
  19. - gofmtdiff=$(gofmt -s -d .) && if [ -n "$gofmtdiff" ]; then printf 'gofmt -s found:\n%s\n' "$gofmtdiff" && exit 1; fi
  20. - golintlint=$(golint ./...) && if [ -n "$golintlint" ]; then printf 'golint found:\n%s\n' "$golintlint" && exit 1; fi
  21. - go tool vet -all .
  22. - gosimple ./...
  23. - ./test.sh
  24. after_success:
  25. - bash <(curl -s https://codecov.io/bash)