github.com/lulzWill/go-agent@v2.1.2+incompatible/.travis.yml (about) 1 language: go 2 go_import_path: github.com/lulzWill/go-agent 3 go: 4 - 1.3 5 - 1.4 6 - 1.5 7 - 1.6 8 - 1.7 9 - 1.8 10 - 1.9 11 - tip 12 13 # Skip the install step. Don't `go get` dependencies. Only build with the 14 # code in vendor/ 15 install: true 16 17 matrix: 18 allow_failures: 19 - go: tip 20 21 # golint has dependencies that only work on Go 1.7 or later. See also 22 # https://github.com/golang/lint/issues/400. 23 before_script: 24 - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/) 25 - DO_GOLINT=$(echo $TRAVIS_GO_VERSION | perl -wne 'chomp; if (/^[0-9]+\.[0-9]+/) { my ($major, $minor) = split /\./; print "new" if $minor >= 7 || $major > 1 } elsif (/^tip$/) { print "new" }' | grep new > /dev/null; echo $?) 26 - if [[ "$DO_GOLINT" -eq "0" ]]; then go get github.com/golang/lint/golint; fi 27 28 script: 29 - if [ -n "$(gofmt -s -l $GO_FILES)" ]; then echo "1"; fi; # gofmt 30 - go test -v -race ./... # go test 31 - go vet ./... # go vet 32 - if [[ "$DO_GOLINT" -eq 0 ]]; then golint -set_exit_status $(go list ./...); fi # golint