暂无描述

.travis.yml 515B

123456789101112131415161718192021
  1. language: go
  2. go:
  3. - 1.7.x
  4. - 1.8.x
  5. os:
  6. - linux
  7. - osx
  8. before_install:
  9. - go get -u github.com/golang/lint/golint honnef.co/go/tools/cmd/...
  10. script:
  11. - gofmtdiff=$(gofmt -s -d .) && if [ -n "$gofmtdiff" ]; then printf 'gofmt -s found:\n%s\n' "$gofmtdiff" && exit 1; fi
  12. - golintlint=$(golint ./...) && if [ -n "$golintlint" ]; then printf 'golint found:\n%s\n' "$golintlint" && exit 1; fi
  13. - go tool vet -all .
  14. - gosimple ./...
  15. - ./test.sh
  16. after_success:
  17. - bash <(curl -s https://codecov.io/bash)