-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
29 lines (22 loc) · 841 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
language: go
go:
- 1.7
# magic word to use faster/newer container-based architecture
sudo: false
before_install:
- go get -u github.com/golang/lint/golint
script:
- go install
- go test $(go list ./... | egrep -v '/vendor/')
- go vet $(go list ./... | egrep -v '/vendor/')
# Note that unfortunately Golint doesn't work like other Go commands: it only
# takes only a single argument at a time and expects that each is the name of a
# local directory (as opposed to a package).
#
# The exit 255 trick ensures that xargs will actually bubble a failure back up
# to the entire command.
- go list ./... | egrep -v '/vendor/' | sed "s|^github\.com/brandur/rserve|.|" | xargs -I{} -n1 sh -c '$GOPATH/bin/golint -set_exit_status {} || exit 255'
- scripts/check_gofmt.sh
notifications:
email:
on_success: never