mirror of
https://github.com/restic/restic.git
synced 2026-08-03 20:52:16 +00:00
+9
-8
@@ -2,22 +2,23 @@ language: go
|
||||
sudo: false
|
||||
|
||||
go:
|
||||
- "1.8.x"
|
||||
- "1.9.x"
|
||||
- "1.10"
|
||||
- "1.11"
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
install:
|
||||
before_install:
|
||||
- go version
|
||||
- export GOBIN="$GOPATH/bin"
|
||||
- export PATH="$PATH:$GOBIN"
|
||||
- go get golang.org/x/sys/unix
|
||||
- export GO111MODULE=on
|
||||
- go get golang.org/x/tools/cmd/goimports
|
||||
|
||||
install:
|
||||
- go build
|
||||
|
||||
script:
|
||||
- ./.travis.sh
|
||||
- diff <(GOPATH="$PWD:$PWD/vendor" goimports -d .) <(printf "")
|
||||
- diff <(goimports -d .) <(printf "")
|
||||
|
||||
after_success:
|
||||
- bash <(curl -s https://codecov.io/bash)
|
||||
|
||||
Reference in New Issue
Block a user