.travis.yml 1.0 KB

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