mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
Update Travis
This commit is contained in:
11
.travis.yml
11
.travis.yml
@@ -1,3 +1,4 @@
|
|||||||
|
---
|
||||||
os: linux
|
os: linux
|
||||||
sudo: false
|
sudo: false
|
||||||
language: go
|
language: go
|
||||||
@@ -19,13 +20,17 @@ notifications:
|
|||||||
install:
|
install:
|
||||||
- export GOBIN="$GOPATH/bin"
|
- export GOBIN="$GOPATH/bin"
|
||||||
- export PATH="$PATH:$GOBIN"
|
- export PATH="$PATH:$GOBIN"
|
||||||
- go get -u github.com/golang/lint/golint
|
- export GO111MODULE=on
|
||||||
|
- export GOPROXY=https://proxy.golang.org
|
||||||
|
- go get -u golang.org/x/lint/golint
|
||||||
- go get golang.org/x/tools/cmd/goimports
|
- go get golang.org/x/tools/cmd/goimports
|
||||||
- go get github.com/restic/calens
|
- go get github.com/restic/calens
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go install
|
- export GO111MODULE=on
|
||||||
- go test -v . ./cmd/rest-server
|
- export GOPROXY=https://proxy.golang.org
|
||||||
|
- go build ./cmd/rest-server
|
||||||
|
- go test ./...
|
||||||
- go run build.go -v -T
|
- go run build.go -v -T
|
||||||
- diff <(goimports -d *.go) <(printf "")
|
- diff <(goimports -d *.go) <(printf "")
|
||||||
- calens
|
- calens
|
||||||
|
|||||||
Reference in New Issue
Block a user