2
2
mirror of https://github.com/octoleo/restic.git synced 2024-11-14 09:14:07 +00:00
restic/vendor/github.com/Azure/azure-sdk-for-go/.travis.yml

49 lines
2.0 KiB
YAML
Raw Normal View History

2017-08-05 18:30:20 +00:00
sudo: false
language: go
go:
- 1.8.x
- 1.9.x
2017-08-05 18:30:20 +00:00
install:
- go get -u github.com/golang/lint/golint
- go get -u github.com/golang/dep/cmd/dep
2017-08-05 18:30:20 +00:00
- export GO15VENDOREXPERIMENT=1
- dep ensure
2017-08-05 18:30:20 +00:00
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)"
2017-08-05 18:30:20 +00:00
- 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)"
2017-09-13 12:09:48 +00:00
- 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)"
2017-08-05 18:30:20 +00:00
- 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 build ./profiles/...
- test -z "$(go fmt ./profiles/... | tee /dev/stderr)"
- test -z "$(go vet ./profiles/... | tee /dev/stderr)"
# - test -z "$(golint ./profiles/... | tee /dev/stderr)" # This line should be uncommented once Aliases include comments.
- go build ./services/...
- test -z "$(go fmt ./services/... | tee /dev/stderr)"
- test -z "$(go vet ./services/... | tee /dev/stderr)"
# - test -z "$(golint ./services/... | tee /dev/stderr)"
2017-08-05 18:30:20 +00:00
- go test -v ./management/...
- go test -v ./arm/...
- go test -v ./storage/...
- bash ./tools/profileBuilder/test.sh
2017-09-13 12:09:48 +00:00
- go test -v ./datalake-store/...
- go test -v ./dataplane/...
2017-08-05 18:30:20 +00:00
- 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/...
2017-09-13 12:09:48 +00:00
- go vet ./datalake-store/...
- go vet ./dataplane/...
2017-08-05 18:30:20 +00:00
- test -z "$(golint ./Gododir/... | tee /dev/stderr)"
- go vet ./Gododir/...