Debian Codegraph @

.travis.yml

raw symbols SCIP
1 language: go
2
3 go:
4 - 1.7.x
5 - 1.8.x
6 - 1.9.x
7 - 1.10.x
8 - master
9
10 go_import_path: gopkg.in/jcmturner/rpc.v0
11
12 before_script:
13 - GO_FILES=$(find . -iname '*.go' -type f | grep -v /vendor/)
14
15 script:
16 - test -z $(gofmt -s -d -l -e $GO_FILES | tee /dev/fd/2 | xargs | sed 's/\s//g') # Fail if a .go file hasn't been formatted with gofmt
17 - go vet ./... # go vet is the official Go static analyzer
18 #- golint -set_exit_status $(go list ./...) # golint to be added
19 - go test -v -race -tags="integration" ./... # Run all the tests with the race detector enabled and integration tests
20 - GOARCH=386 go test -v -tags="integration" ./... # 32bit testing
21
22