1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-14 03:51:24 +02:00

goveralls

This commit is contained in:
Carlos Alexandro Becker 2017-02-07 17:00:46 -02:00
parent c46b0c712c
commit 4988bac30e
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ dist/
vendor
goreleaser
.glide/
coverage.out

View File

@ -4,6 +4,8 @@ install: make setup
script:
- make ci
after_success:
- go get github.com/mattn/goveralls
- goveralls -coverprofile=coverage.out -service=travis-ci -repotoken="$COVERALLS_TOKEN"
- test -n "$TRAVIS_TAG" && gem install fpm && go run main.go
notifications:
email: false

View File

@ -5,11 +5,13 @@ TEST_OPTIONS?=
setup: ## Install all the build and lint dependencies
go get -u github.com/alecthomas/gometalinter
go get -u github.com/Masterminds/glide
go get -u github.com/pierrre/gotestcover
go get -u golang.org/x/tools/cmd/cover
glide install
gometalinter --install
test: ## Run all the tests
go test $(TEST_OPTIONS) -cover $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
gotestcover $(TEST_OPTIONS) -coverprofile=coverage.out $(SOURCE_FILES) -run $(TEST_PATTERN) -timeout=30s
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