1
0
mirror of https://github.com/restic/restic.git synced 2024-07-16 10:47:34 +02:00
restic/vendor/github.com/Azure/azure-sdk-for-go/.travis.yml
Alexander Neumann 946c8399e2 Update dependenciess
Exclude minio-go for now (pin to 3.x.y).
2017-12-03 21:22:33 +01:00

44 lines
1.7 KiB
YAML

sudo: false
language: go
go:
- 1.7.x
- 1.8.x
- 1.9.x
install:
- go get -u github.com/golang/lint/golint
- go get -u github.com/Masterminds/glide
- go get -u golang.org/x/net/context
- go get -u gopkg.in/godo.v2/cmd/godo
- export GO15VENDOREXPERIMENT=1
- glide install
script:
- bash rungas.sh
- grep -L -r --include *.go --exclude-dir vendor -P "Copyright (\d{4}|\(c\)) Microsoft" ./ | tee /dev/stderr | test -z "$(< /dev/stdin)"
- test -z "$(gofmt -s -l $(find ./arm/* -type d -print) | tee /dev/stderr)"
- test -z "$(gofmt -s -l -w management | tee /dev/stderr)"
- test -z "$(gofmt -s -l -w storage | tee /dev/stderr)"
- test -z "$(gofmt -s -l -w Gododir | tee /dev/stderr)"
- test -z "$(gofmt -s -l -w $(find ./datalake-store/* -type d -print) | tee /dev/stderr)"
- test -z "$(gofmt -s -l -w $(find ./services/* -type d -print) | tee /dev/stderr)"
- test -z "$(go build $(find ./* -type d -print | grep -v '^./vendor$' | grep -v '^./storage$') | tee /dev/stderr)"
- test -z "$(go vet $(find ./arm/* -type d -print) | tee /dev/stderr)"
- test -z "$(golint ./arm/... | tee /dev/stderr)"
- go build ./arm/examples/...
- go test -v ./management/...
- go test -v ./arm/...
- go test -v ./storage/...
- bash ./tools/profileBuilder/test.sh
- go test -v ./datalake-store/...
- go test -v ./dataplane/...
- test -z "$(golint ./management/... | grep -v 'should have comment' | grep -v 'stutters' | tee /dev/stderr)"
- test -z "$(golint ./storage/... | tee /dev/stderr)"
- go vet ./management/...
- go vet ./storage/...
- go vet ./datalake-store/...
- go vet ./dataplane/...
- test -z "$(golint ./Gododir/... | tee /dev/stderr)"
- go vet ./Gododir/...