mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-14 03:51:24 +02:00
goveralls
This commit is contained in:
parent
c46b0c712c
commit
4988bac30e
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@ dist/
|
||||
vendor
|
||||
goreleaser
|
||||
.glide/
|
||||
coverage.out
|
||||
|
@ -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
|
||||
|
4
Makefile
4
Makefile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user