1sudo: false 2language: go 3 4go: 5 - "stable" 6 - "1.11.x" 7 - "1.10.x" 8 - "1.9.x" 9 10matrix: 11 include: 12 - go: "stable" 13 env: GOLINT=true 14 allow_failures: 15 - go: tip 16 fast_finish: true 17 18 19before_install: 20 - if [ ! -z "${GOLINT}" ]; then go get -u golang.org/x/lint/golint; fi 21 22script: 23 - go test --race ./... 24 25after_script: 26 - test -z "$(gofmt -s -l -w . | tee /dev/stderr)" 27 - if [ ! -z "${GOLINT}" ]; then echo running golint; golint --set_exit_status ./...; else echo skipping golint; fi 28 - go vet ./... 29 30os: 31 - linux 32 - osx 33 - windows 34 35notifications: 36 email: false 37