mirror of
https://github.com/octoleo/restic.git
synced 2024-12-02 09:58:25 +00:00
36 lines
760 B
YAML
36 lines
760 B
YAML
# version format
|
|
version: "{build}"
|
|
|
|
# Operating system (build VM template)
|
|
os: Windows Server 2012 R2
|
|
|
|
clone_folder: c:\gopath\src\github.com\minio\minio-go
|
|
|
|
# environment variables
|
|
environment:
|
|
GOPATH: c:\gopath
|
|
GO111MODULE: on
|
|
|
|
# scripts that run after cloning repository
|
|
install:
|
|
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
|
|
- go version
|
|
- go env
|
|
- go get golang.org/x/lint/golint
|
|
- go get honnef.co/go/tools/cmd/staticcheck
|
|
|
|
# to run your custom scripts instead of automatic MSBuild
|
|
build_script:
|
|
- go vet ./...
|
|
- gofmt -s -l .
|
|
- golint -set_exit_status github.com/minio/minio-go/...
|
|
- staticcheck
|
|
- go test -short -v ./...
|
|
- go test -short -race -v ./...
|
|
|
|
# to disable automatic tests
|
|
test: off
|
|
|
|
# to disable deployment
|
|
deploy: off
|