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:
parent
3aebff9d86
commit
8e8be3d349
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@ goreleaser
|
||||
!cmd/goreleaser
|
||||
.glide/
|
||||
coverage.out
|
||||
coverage.txt
|
||||
|
@ -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
|
||||
|
4
Makefile
4
Makefile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user