.travis.yml 636 B

12345678910111213141516171819202122232425262728
  1. language: go
  2. go:
  3. - '1.9.x'
  4. - '1.10.x'
  5. - '1.11.x'
  6. - '1.12.x'
  7. - '1.13.x'
  8. - '1.14.x'
  9. - 'master'
  10. sudo: false
  11. before_install:
  12. - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
  13. - go get github.com/axw/gocov/gocov
  14. - go get github.com/mattn/goveralls
  15. - go get ./cmd/pinyin
  16. script:
  17. - go run cmd/pinyin/main.go abc
  18. - go run cmd/pinyin/main.go -s zhao abc
  19. - echo "abc" | go run cmd/pinyin/main.go
  20. - echo "abc" > abc.txt && go run cmd/pinyin/main.go < abc.txt
  21. - $HOME/gopath/bin/goveralls -service=travis-ci -v -package .
  22. matrix:
  23. allow_failures:
  24. - go: master