forked from vmware-archive/wavefront-opentracing-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 loc) · 1.03 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: go
# workaround for case sensitive build issues with wavefrontHQ
go_import_path: github.com/wavefronthq/wavefront-opentracing-sdk-go
go:
- "1.9.x"
- "1.10.x"
- "1.11.x"
- master
before_install:
# Setup dependency management tool
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
install:
- dep ensure
matrix:
# It's ok if our code fails on unstable development versions of Go.
allow_failures:
- go: master
# Don't wait for tip tests to finish. Mark the test run green if the
# tests pass on the stable versions of Go.
fast_finish: true
# Don't email me the results of the test runs.
notifications:
email: false
# script always run to completion (set +e).
script:
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d $(find . -path ./vendor -prune -o -name '*.go' -print)) # exlude vendor dir
- go test -v -race ./... # Run all the tests with the race detector enabled
- go vet ./... # go vet is the official Go static analyzer