mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 01:26:18 -08:00
40 lines
698 B
YAML
40 lines
698 B
YAML
---
|
|
os: linux
|
|
sudo: false
|
|
language: go
|
|
|
|
go:
|
|
- "1.11.x"
|
|
- "1.12.x"
|
|
- "1.13.x"
|
|
- "1.14.x"
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
notifications:
|
|
email:
|
|
on_success: always
|
|
|
|
install:
|
|
- export GOBIN="$GOPATH/bin"
|
|
- export PATH="$PATH:$GOBIN"
|
|
- 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 github.com/restic/calens
|
|
|
|
script:
|
|
- export GO111MODULE=on
|
|
- export GOPROXY=https://proxy.golang.org
|
|
- go build ./cmd/rest-server
|
|
- go test ./...
|
|
- go run build.go -v -T
|
|
- diff <(goimports -d *.go) <(printf "")
|
|
- calens
|
|
|
|
after_success:
|
|
- diff <(golint *.go) <(printf "")
|