go-github-selfupdate/.appveyor.yml

30 lines
740 B
YAML
Raw Normal View History

2017-12-30 04:38:11 +00:00
version: "{build}"
clone_depth: 1
2018-09-23 11:39:46 +00:00
clone_folder: c:\outside-gopath
2017-12-30 04:38:11 +00:00
environment:
GOPATH: c:\gopath
2018-09-23 11:39:46 +00:00
GO111MODULE: on
2017-12-30 04:38:11 +00:00
install:
- echo %PATH%
- echo %GOPATH%
- go version
- go env
- go get -v -t -d ./...
build: off
test_script:
- go build ./selfupdate
- go build ./cmd/selfupdate-example
2017-12-30 07:14:06 +00:00
- go build ./cmd/detect-latest-release
- go build ./cmd/go-get-release/
- ps: |
if (Test-Path env:GITHUB_TOKEN) {
go test -v -race "-coverprofile=coverage.txt" ./selfupdate
} else {
go test -v -race -short ./selfupdate
}
2017-12-30 04:38:11 +00:00
after_test:
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "coverage.txt"
2017-12-30 04:38:11 +00:00
deploy: off