-
Notifications
You must be signed in to change notification settings - Fork 238
/
.travis.yml
27 lines (22 loc) · 762 Bytes
/
.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
language: go
go:
- "1.9.x"
- "1.10.x"
- "1.11.x"
- master
matrix:
# Build OK if fails on unstable development versions of Go.
allow_failures:
- go: master
# Don't wait for tests to finish on allow_failures.
# Mark the build finished if tests pass on other versions of Go.
fast_finish: true
go_import_path: firebase.google.com/go
install:
- go get golang.org/x/lint/golint
- go get -t -v $(go list ./... | grep -v integration)
script:
- golint -set_exit_status $(go list ./...)
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.11\.([0-9]+|x)$ ]]; then ./.travis.gofmt.sh; fi
- go test -v -race -test.short ./... # Run tests with the race detector.
- go vet -v ./... # Run Go static analyzer.