.travis.yml 1016 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. git:
  13. depth: 10
  14. before_install:
  15. - if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi
  16. install:
  17. - if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else make install; fi
  18. - if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
  19. - if [[ "${GO111MODULE}" = "on" ]]; then make tools; fi
  20. go_import_path: github.com/gin-gonic/gin
  21. script:
  22. - make vet
  23. - make fmt-check
  24. - make misspell-check
  25. - make test
  26. after_success:
  27. - bash <(curl -s https://codecov.io/bash)
  28. notifications:
  29. webhooks:
  30. urls:
  31. - https://webhooks.gitter.im/e/7f95bf605c4d356372f4
  32. on_success: change # options: [always|never|change] default: always
  33. on_failure: always # options: [always|never|change] default: always
  34. on_start: false # default: false