restic/vendor/github.com/Azure/go-autorest/.travis.yml

30 lines
737 B
YAML
Raw Normal View History

2017-08-05 20:30:20 +02:00
sudo: false
language: go
2017-09-13 14:09:48 +02:00
go:
- master
- 1.10.x
- 1.9.x
- 1.8.x
matrix:
allow_failures:
- go: master
2017-08-05 20:30:20 +02:00
install:
- go get -u github.com/golang/lint/golint
- go get -u github.com/golang/dep/cmd/dep
2017-08-05 20:30:20 +02:00
- go get -u github.com/stretchr/testify
- go get -u github.com/GoASTScanner/gas
- dep ensure
2017-08-05 20:30:20 +02:00
script:
2017-10-22 10:07:36 +02:00
- grep -L -r --include *.go --exclude-dir vendor -P "Copyright (\d{4}|\(c\)) Microsoft" ./ | tee /dev/stderr | test -z "$(< /dev/stdin)"
2017-08-05 20:30:20 +02:00
- test -z "$(gofmt -s -l -w ./autorest/. | tee /dev/stderr)"
- test -z "$(golint ./autorest/... | tee /dev/stderr)"
- go vet ./autorest/...
- test -z "$(gas ./autorest/... | tee /dev/stderr | grep Error)"
- go build -v ./autorest/...
- go test -v ./autorest/...