forked from dropbox/llama
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (22 loc) · 814 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
dist: xenial
language: go
env:
# These need to be on the same line to apply to the same build(s)
- GO111MODULE=on GOFLAGS='-mod=vendor'
go:
- 1.11.x
- stable
- tip
# Don't do `go get` for deps since the build/test phases take care
# of that when using modules.
install: true
before_script:
# Install the linter, but don't use go get because Google rate limits
# See https://github.com/golangci/golangci-lint#ci-installation
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0
script:
- golangci-lint run
# If any files outside of the vendor directory require formatting fixes, fail
- if [ -n "$(gofmt -l . | grep -v 'vendor')" ]; then echo "Please run 'go fmt ./...'"; false; fi
- go build
- go test -v -race ./...