go-github-selfupdate/.appveyor.yml
rhysd 006a0d3c1f run tests with -short flag on pull requests
because they would fail since $GITHUB_TOKEN is not set
2018-05-20 22:15:41 +09:00

31 lines
830 B
YAML

version: "{build}"
clone_depth: 1
clone_folder: c:\gopath\src\github.com\rhysd\go-github-selfupdate
environment:
GOPATH: c:\gopath
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
- 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
}
after_test:
- ps: |
if (Test-Path coverage.txt) {
"SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
pip install codecov
codecov -f "coverage.txt"
}
deploy: off