6 go_import_path: contrib.go.opencensus.io/exporter/ocagent
9 - GO_FILES=$(find . -iname '*.go' | grep -v /vendor/) # All the .go files, excluding vendor/ if any
10 - PKGS=$(go list ./... | grep -v /vendor/) # All the import paths, excluding vendor/ if any
13 - go build ./... # Ensure dependency updates don't break build
14 - if [ -n "$(gofmt -s -l $GO_FILES)" ]; then echo "gofmt the following files:"; gofmt -s -l $GO_FILES; exit 1; fi
16 - GO111MODULE=on go test -v -race $PKGS # Run all the tests with the race detector enabled
17 - GO111MODULE=off go test -v -race $PKGS # Make sure tests still pass when not using Go modules.
18 - 'if [[ $TRAVIS_GO_VERSION = 1.8* ]]; then ! golint ./... | grep -vE "(_mock|_string|\.pb)\.go:"; fi'