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