mirror of
https://github.com/octoleo/restic.git
synced 2024-11-14 09:14:07 +00:00
30 lines
737 B
YAML
30 lines
737 B
YAML
sudo: false
|
|
|
|
language: go
|
|
|
|
go:
|
|
- master
|
|
- 1.10.x
|
|
- 1.9.x
|
|
- 1.8.x
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- go: master
|
|
|
|
install:
|
|
- go get -u github.com/golang/lint/golint
|
|
- go get -u github.com/golang/dep/cmd/dep
|
|
- go get -u github.com/stretchr/testify
|
|
- go get -u github.com/GoASTScanner/gas
|
|
- dep ensure
|
|
|
|
script:
|
|
- 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 -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/...
|