.travis.yml 1.0 KB

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