run CI on Windows using AppVeyor

This commit is contained in:
rhysd 2017-12-30 13:38:11 +09:00
parent 0d267357c7
commit 75e095f048
1 changed files with 21 additions and 0 deletions

21
.appveyor.yml Normal file
View File

@ -0,0 +1,21 @@
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 test -v -race -coverprofile=coverage.txt ./selfupdate
after_test:
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov
- codecov -f "coverage.txt"
deploy: off