rest-server/.travis.yml
Alexander Neumann a6961e877b Travis: Fix tests (again)
The problem is that in Go < 1.9 "..." also matches the vendor directory,
and we don't want to run those tests :)
2018-03-20 22:19:42 +01:00

37 lines
565 B
YAML

os: linux
sudo: false
language: go
go:
- "1.7.x"
- "1.8.x"
- "1.9.x"
- "1.10.x"
- master
matrix:
allow_failures:
- go: master
branches:
only:
- master
notifications:
email:
on_success: always
install:
- export GOBIN="$GOPATH/bin"
- export PATH="$PATH:$GOBIN"
- go get -u github.com/golang/lint/golint
- go get golang.org/x/tools/cmd/goimports
script:
- go install
- go test -v . ./cmd/rest-server
- go run build.go -v -T
- diff <(goimports -d *.go) <(printf "")
after_success:
- diff <(golint *.go) <(printf "")