.travis.yml 1.1 KB

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