Rohan Agrawal | c32d993 | 2020-06-15 11:01:47 +0000 | [diff] [blame] | 1 | language: go |
| 2 | |
| 3 | matrix: |
| 4 | include: |
Maninder | 12b909f | 2020-10-23 14:23:36 +0530 | [diff] [blame] | 5 | - go: "1.13.x" |
| 6 | - go: "1.14.x" |
Rohan Agrawal | c32d993 | 2020-06-15 11:01:47 +0000 | [diff] [blame] | 7 | - go: "tip" |
| 8 | env: |
| 9 | - LINT=true |
| 10 | - COVERAGE=true |
| 11 | |
| 12 | install: |
| 13 | - if [ "$LINT" == true ]; then go get -u golang.org/x/lint/golint/... ; else echo 'skipping lint'; fi |
| 14 | - go get -u github.com/stretchr/testify/... |
| 15 | |
| 16 | script: |
| 17 | - make test |
| 18 | - go build ./... |
| 19 | - if [ "$LINT" == true ]; then make lint ; else echo 'skipping lint'; fi |
| 20 | - if [ "$COVERAGE" == true ]; then make cover && bash <(curl -s https://codecov.io/bash) ; else echo 'skipping coverage'; fi |