-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
36 lines (30 loc) · 861 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
28
29
30
31
32
33
34
35
language: go
go: "1.11.4"
notifications:
email: false
env:
global:
- TAGS=()
before_install:
- TAGS+=(debug)
- TAGS+=(integration)
- TAGS+=(prebuild)
- go version
install:
- go get -u github.com/golang/dep/cmd/dep
- go get -u github.com/golang/lint/golint
- go get -u github.com/jessevdk/go-assets-builder
script:
- dep ensure
- (result="`find . -type d -name vendor -prune -o -type f -name '*.go' -exec golint {} \;`"; if [ ! -z "${result}" ]; then echo "${result}"; exit 1; fi)
- go vet -tags="`echo ${TAGS[@]}`" ./...
- cp buildtime/buildtime.go /tmp
- go generate -tags=prebuild ./...
- |
for tag in ${TAGS[@]}; do
echo "go build -v -tags=${tag} ./..."
go build -v -tags=${tag} ./...
done
- go build -v
- cp /tmp/buildtime.go buildtime/buildtime.go
- go test -tags=integration -v -race ./...