sslobodr | d046be8 | 2019-01-16 10:02:22 -0500 | [diff] [blame] | 1 | sudo: false |
| 2 | language: go |
sslobodr | d046be8 | 2019-01-16 10:02:22 -0500 | [diff] [blame] | 3 | matrix: |
| 4 | allow_failures: |
| 5 | - go: master |
| 6 | fast_finish: true |
Stephane Barbarie | 260a563 | 2019-02-26 16:12:49 -0500 | [diff] [blame] | 7 | include: |
| 8 | - go: 1.10.x |
| 9 | - go: 1.11.x |
| 10 | env: GOFMT=1 |
| 11 | - go: master |
sslobodr | d046be8 | 2019-01-16 10:02:22 -0500 | [diff] [blame] | 12 | install: |
| 13 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). |
| 14 | script: |
| 15 | - go get -t -v ./... |
Stephane Barbarie | 260a563 | 2019-02-26 16:12:49 -0500 | [diff] [blame] | 16 | - if test -n "${GOFMT}"; then gofmt -w -s . && git diff --exit-code; fi |
sslobodr | d046be8 | 2019-01-16 10:02:22 -0500 | [diff] [blame] | 17 | - go tool vet . |
| 18 | - go test -v -race ./... |