mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 07:33:21 +00:00
35 lines
510 B
YAML
35 lines
510 B
YAML
os: linux
|
|
sudo: false
|
|
language: go
|
|
|
|
go:
|
|
- 1.7.5
|
|
- 1.8
|
|
- tip
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- go: tip
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
|
|
notifications:
|
|
email:
|
|
on_success: always
|
|
|
|
install:
|
|
- export GOBIN="$GOPATH/bin"
|
|
- export PATH="$PATH:$GOBIN"
|
|
- go get -u github.com/golang/lint/golint
|
|
- go get golang.org/x/tools/cmd/goimports
|
|
|
|
script:
|
|
- go install
|
|
- go test -v .
|
|
- go run build.go -v -T
|
|
- diff <(goimports -d *.go) <(printf "")
|
|
|
|
after_success:
|
|
- diff <(golint *.go) <(printf "")
|