2017-07-25 00:38:41 +02:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
language: go
|
|
|
|
go:
|
2018-01-16 14:20:59 +01:00
|
|
|
- 1.8.x
|
|
|
|
- 1.9.x
|
2018-03-19 16:51:38 +01:00
|
|
|
- 1.10.x
|
|
|
|
- master
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- go: master
|
2017-07-25 00:38:41 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
- go get -u github.com/golang/lint/golint
|
2018-01-16 14:20:59 +01:00
|
|
|
- go get -u github.com/golang/dep/cmd/dep
|
|
|
|
- dep ensure
|
2017-07-25 00:38:41 +02:00
|
|
|
|
|
|
|
script:
|
|
|
|
- bash rungas.sh
|
2017-09-30 16:27:27 +02:00
|
|
|
- grep -L -r --include *.go --exclude-dir vendor -P "Copyright (\d{4}|\(c\)) Microsoft" ./ | tee /dev/stderr | test -z "$(< /dev/stdin)"
|
2018-03-19 16:51:38 +01:00
|
|
|
- test -z "$(go build $(go list ./... | grep -v vendor) | tee /dev/stderr)"
|
|
|
|
- test -z "$(go fmt $(go list ./... | grep -v vendor) | tee /dev/stderr)"
|
|
|
|
- go vet $(go list ./... | grep -v vendor)
|
|
|
|
- go test $(sh ./findTestedPackages.sh)
|