.travis.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. language: go
  2. matrix:
  3. fast_finish: true
  4. include:
  5. - go: 1.11.x
  6. env: GO111MODULE=on
  7. - go: 1.12.x
  8. env: GO111MODULE=on
  9. - go: 1.13.x
  10. - go: 1.13.x
  11. env:
  12. - TESTTAGS=nomsgpack
  13. - go: 1.14.x
  14. - go: 1.14.x
  15. env:
  16. - TESTTAGS=nomsgpack
  17. - go: master
  18. git:
  19. depth: 10
  20. before_install:
  21. - if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi
  22. install:
  23. - if [[ "${GO111MODULE}" = "on" ]]; then go mod download; fi
  24. - if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
  25. - if [[ "${GO111MODULE}" = "on" ]]; then make tools; fi
  26. go_import_path: github.com/gin-gonic/gin
  27. script:
  28. - make vet
  29. - make fmt-check
  30. - make misspell-check
  31. - make test
  32. after_success:
  33. - bash <(curl -s https://codecov.io/bash)
  34. notifications:
  35. webhooks:
  36. urls:
  37. - https://webhooks.gitter.im/e/7f95bf605c4d356372f4
  38. on_success: change # options: [always|never|change] default: always
  39. on_failure: always # options: [always|never|change] default: always
  40. on_start: false # default: false