Merge branch 'run-tests-shortly-on-PR'

This commit is contained in:
rhysd 2018-05-20 23:23:21 +09:00
commit 41c1bbb080
2 changed files with 13 additions and 3 deletions

View File

@ -15,7 +15,12 @@ test_script:
- go build ./cmd/selfupdate-example
- go build ./cmd/detect-latest-release
- go build ./cmd/go-get-release/
- go test -v -race -coverprofile=coverage.txt ./selfupdate
- ps: |
if (Test-Path env:GITHUB_TOKEN) {
go test -v -race "-coverprofile=coverage.txt" ./selfupdate
} else {
go test -v -race -short ./selfupdate
}
after_test:
- "SET PATH=C:\\Python34;C:\\Python34\\Scripts;%PATH%"
- pip install codecov

View File

@ -11,6 +11,11 @@ script:
- go build ./cmd/selfupdate-example/
- go build ./cmd/detect-latest-release/
- go build ./cmd/go-get-release/
- go test -v -race -coverprofile=coverage.txt ./selfupdate
- |
if [[ "${GITHUB_TOKEN}" != "" ]]; then
go test -v -race -coverprofile=coverage.txt ./selfupdate
else
go test -v -race -short ./selfupdate
fi
after_success:
- bash <(curl -s https://codecov.io/bash)
- if [ -f coverage.txt ]; then bash <(curl -s https://codecov.io/bash); fi