mirror of
https://github.com/rclone/rclone.git
synced 2024-12-11 09:41:47 +01:00
6427029c4e
* Update all dependencies * Remove all `[[constraint]]` from Gopkg.toml * Add in the minimum number of `[[override]]` to build * Remove go get of github.com/inconshreveable/mousetrap as it is vendored * Update docs with new policy on constraints
35 lines
877 B
YAML
35 lines
877 B
YAML
sudo: false
|
|
|
|
language: go
|
|
|
|
go:
|
|
- master
|
|
- 1.10.x
|
|
- 1.9.x
|
|
- 1.8.x
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- go: master
|
|
|
|
env:
|
|
- DEP_VERSION="0.4.1"
|
|
|
|
before_install:
|
|
- curl -L -o $GOPATH/bin/dep https://github.com/golang/dep/releases/download/v$DEP_VERSION/dep-linux-amd64 && chmod +x $GOPATH/bin/dep
|
|
|
|
install:
|
|
- go get -u github.com/golang/lint/golint
|
|
- 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/...
|