2014-07-03 08:23:03 -07:00
|
|
|
language: go
|
2018-09-20 03:13:04 +02:00
|
|
|
|
|
|
|
matrix:
|
2018-09-25 21:52:21 +08:00
|
|
|
fast_finish: true
|
2018-10-15 12:52:51 +08:00
|
|
|
include:
|
|
|
|
- go: 1.11.x
|
|
|
|
env: GO111MODULE=on
|
2019-02-26 10:45:44 +08:00
|
|
|
- go: 1.12.x
|
|
|
|
env: GO111MODULE=on
|
2019-09-04 12:26:50 +08:00
|
|
|
- go: 1.13.x
|
2020-01-07 04:31:10 +01:00
|
|
|
- go: 1.13.x
|
|
|
|
env:
|
|
|
|
- TESTTAGS=nomsgpack
|
2020-02-26 10:27:03 +08:00
|
|
|
- go: 1.14.x
|
|
|
|
- go: 1.14.x
|
|
|
|
env:
|
|
|
|
- TESTTAGS=nomsgpack
|
2019-03-08 23:18:52 +08:00
|
|
|
- go: master
|
2015-05-19 01:00:17 +02:00
|
|
|
|
2016-12-06 23:54:11 +01:00
|
|
|
git:
|
2018-04-22 16:04:38 +09:00
|
|
|
depth: 10
|
2016-12-06 23:54:11 +01:00
|
|
|
|
2018-10-15 12:52:51 +08:00
|
|
|
before_install:
|
|
|
|
- if [[ "${GO111MODULE}" = "on" ]]; then mkdir "${HOME}/go"; export GOPATH="${HOME}/go"; fi
|
|
|
|
|
2016-12-06 23:54:11 +01:00
|
|
|
install:
|
2019-11-25 15:42:23 +08:00
|
|
|
- if [[ "${GO111MODULE}" = "on" ]]; then go mod download; fi
|
2018-10-15 12:52:51 +08:00
|
|
|
- if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
|
|
|
|
- if [[ "${GO111MODULE}" = "on" ]]; then make tools; fi
|
2016-12-06 23:54:11 +01:00
|
|
|
|
2016-01-28 02:32:44 +09:00
|
|
|
go_import_path: github.com/gin-gonic/gin
|
|
|
|
|
2015-05-19 01:00:17 +02:00
|
|
|
script:
|
2017-06-12 21:50:42 -05:00
|
|
|
- make vet
|
|
|
|
- make fmt-check
|
|
|
|
- make misspell-check
|
|
|
|
- make test
|
2015-06-06 17:35:30 +02:00
|
|
|
|
|
|
|
after_success:
|
2016-10-19 11:22:08 +02:00
|
|
|
- bash <(curl -s https://codecov.io/bash)
|
2015-05-20 10:37:52 +02:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
2016-10-28 21:31:58 +02:00
|
|
|
- https://webhooks.gitter.im/e/7f95bf605c4d356372f4
|
2015-05-20 10:37:52 +02:00
|
|
|
on_success: change # options: [always|never|change] default: always
|
|
|
|
on_failure: always # options: [always|never|change] default: always
|
|
|
|
on_start: false # default: false
|