2018-10-24 06:15:06 -07:00
|
|
|
language: go
|
|
|
|
|
2019-08-14 02:00:39 -07:00
|
|
|
matrix:
|
|
|
|
include:
|
2020-07-10 15:41:20 -07:00
|
|
|
- go: "1.13.x"
|
|
|
|
- go: "1.14.x"
|
2019-08-14 02:00:39 -07:00
|
|
|
- go: "tip"
|
|
|
|
env:
|
|
|
|
- LINT=true
|
|
|
|
- COVERAGE=true
|
2018-10-24 06:15:06 -07:00
|
|
|
|
|
|
|
install:
|
2019-08-14 02:00:39 -07:00
|
|
|
- if [ "$LINT" == true ]; then go get -u golang.org/x/lint/golint/... ; else echo 'skipping lint'; fi
|
|
|
|
- go get -u github.com/stretchr/testify/...
|
|
|
|
|
2018-10-24 06:15:06 -07:00
|
|
|
script:
|
2019-08-14 02:00:39 -07:00
|
|
|
- make test
|
2018-10-24 06:15:06 -07:00
|
|
|
- go build ./...
|
2019-08-14 02:00:39 -07:00
|
|
|
- if [ "$LINT" == true ]; then make lint ; else echo 'skipping lint'; fi
|
|
|
|
- if [ "$COVERAGE" == true ]; then make cover && bash <(curl -s https://codecov.io/bash) ; else echo 'skipping coverage'; fi
|