2017-07-25 00:38:41 +02:00
|
|
|
sudo: false
|
|
|
|
|
|
|
|
language: go
|
|
|
|
go:
|
|
|
|
- 1.8
|
2017-09-30 16:27:27 +02:00
|
|
|
- 1.9
|
2017-07-25 00:38:41 +02:00
|
|
|
|
|
|
|
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
|
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)"
|
2017-07-25 00:38:41 +02: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-30 16:27:27 +02:00
|
|
|
- test -z "$(gofmt -s -l -w $(find ./datalake-store/* -type d -print) | tee /dev/stderr)"
|
|
|
|
# - test -z "$(gofmt -s -l -w $(find ./dataplane/* -type d -print) | tee /dev/stderr)"
|
2017-07-25 00:38:41 +02: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 test -v ./management/...
|
2017-09-30 16:27:27 +02:00
|
|
|
- go test -v ./arm/...
|
2017-07-25 00:38:41 +02:00
|
|
|
- go test -v ./storage/...
|
2017-09-30 16:27:27 +02:00
|
|
|
- go test -v ./datalake-store/...
|
|
|
|
- go test -v ./dataplane/...
|
2017-07-25 00:38:41 +02:00
|
|
|
- test -z "$(golint ./management/... | grep -v 'should have comment' | grep -v 'stutters' | tee /dev/stderr)"
|
|
|
|
- test -z "$(golint ./storage/... | tee /dev/stderr)"
|
2017-09-30 16:27:27 +02:00
|
|
|
# - test -z "$(golint ./datalake-store/... | tee /dev/stderr)"
|
|
|
|
# - test -z "$(golint ./dataplane/... | tee /dev/stderr)"
|
2017-07-25 00:38:41 +02:00
|
|
|
- go vet ./management/...
|
|
|
|
- go vet ./storage/...
|
2017-09-30 16:27:27 +02:00
|
|
|
- go vet ./datalake-store/...
|
|
|
|
- go vet ./dataplane/...
|
2017-07-25 00:38:41 +02:00
|
|
|
- test -z "$(golint ./Gododir/... | tee /dev/stderr)"
|
|
|
|
- go vet ./Gododir/...
|
2017-09-30 16:27:27 +02:00
|
|
|
|