另客网go项目公用的代码库

.travis.yml 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. language: go
  2. go_import_path: github.com/sirupsen/logrus
  3. env:
  4. - GOMAXPROCS=4 GORACE=halt_on_error=1
  5. matrix:
  6. include:
  7. - go: 1.10.x
  8. install:
  9. - go get github.com/stretchr/testify/assert
  10. - go get golang.org/x/crypto/ssh/terminal
  11. - go get golang.org/x/sys/unix
  12. - go get golang.org/x/sys/windows
  13. script:
  14. - go test -race -v ./...
  15. - go: 1.11.x
  16. env: GO111MODULE=on
  17. install:
  18. - go mod download
  19. script:
  20. - go test -race -v ./...
  21. - go: 1.11.x
  22. env: GO111MODULE=off
  23. install:
  24. - go get github.com/stretchr/testify/assert
  25. - go get golang.org/x/crypto/ssh/terminal
  26. - go get golang.org/x/sys/unix
  27. - go get golang.org/x/sys/windows
  28. script:
  29. - go test -race -v ./...
  30. - go: 1.10.x
  31. install:
  32. - go get github.com/stretchr/testify/assert
  33. - go get golang.org/x/crypto/ssh/terminal
  34. - go get golang.org/x/sys/unix
  35. - go get golang.org/x/sys/windows
  36. script:
  37. - go test -race -v -tags appengine ./...
  38. - go: 1.11.x
  39. env: GO111MODULE=on
  40. install:
  41. - go mod download
  42. script:
  43. - go test -race -v -tags appengine ./...
  44. - go: 1.11.x
  45. env: GO111MODULE=off
  46. install:
  47. - go get github.com/stretchr/testify/assert
  48. - go get golang.org/x/crypto/ssh/terminal
  49. - go get golang.org/x/sys/unix
  50. - go get golang.org/x/sys/windows
  51. script:
  52. - go test -race -v -tags appengine ./...