rclone/vendor/github.com/Azure/azure-sdk-for-go/.travis.yml
2018-07-04 09:25:13 +01:00

37 lines
1.1 KiB
YAML

sudo: false
language: go
go:
- 1.8.x
- 1.9.x
- 1.10.x
- master
env:
global:
- DEP_VERSION="0.4.1"
- DEP_SHA=31144e465e52ffbc0035248a10ddea61a09bf28b00784fd3fdd9882c8cbb2315
- IGNORE_BREAKING_CHANGES=true
matrix:
- GOARCH="amd64"
- GOARCH="386"
matrix:
allow_failures:
- go: master
before_install:
- curl -fL -o $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v$DEP_VERSION/dep-linux-amd64 && echo "$DEP_SHA $GOPATH/bin/dep" | sha256sum -c - && chmod +x $GOPATH/bin/dep
install:
- go get -u github.com/golang/lint/golint
- dep ensure
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)"
- go build $(go list ./... | grep -v vendor)
- test -z "$(go fmt $(go list ./... | grep -v vendor) | tee /dev/stderr)"
- go vet $(go list ./... | grep -v vendor)
- go test $(sh ./findTestedPackages.sh)
- go run ./tools/apidiff/main.go packages ./services FETCH_HEAD~1 FETCH_HEAD --copyrepo --breakingchanges || $IGNORE_BREAKING_CHANGES