1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-26 04:22:05 +02:00

switching to codecov

This commit is contained in:
Carlos Alexandro Becker 2017-04-21 21:22:11 -03:00
parent 3aebff9d86
commit 8e8be3d349
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
3 changed files with 4 additions and 4 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@ goreleaser
!cmd/goreleaser
.glide/
coverage.out
coverage.txt

View File

@ -7,8 +7,7 @@ script:
- make test
- test -n "$TRAVIS_TAG" || go run ./cmd/goreleaser/main.go --skip-validate --skip-publish
after_success:
- go get github.com/mattn/goveralls
- goveralls -coverprofile=coverage.out -service=travis-ci -repotoken="$COVERALLS_TOKEN"
- bash <(curl -s https://codecov.io/bash)
- test -n "$TRAVIS_TAG" && go run ./cmd/goreleaser/main.go
notifications:
email: false

View File

@ -11,10 +11,10 @@ setup: ## Install all the build and lint dependencies
gometalinter --install
test: ## Run all the tests
gotestcover $(TEST_OPTIONS) -covermode=count -coverprofile=coverage.out $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
gotestcover $(TEST_OPTIONS) -covermode=atomic -coverprofile=coverage.txt $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
cover: test ## Run all the tests and opens the coverage report
go tool cover -html=coverage.out
go tool cover -html=coverage.txt
fmt: ## gofmt and goimports all go files
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done