diff --git a/.travis.yml b/.travis.yml index 3107804..c7bf636 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,19 @@ language: go go: -- 1.x + - 1.x + - tip + +script: + - make travis + +after_success: + - bash <(curl -s https://codecov.io/bash) deploy: -- provider: script - skip_cleanup: true - script: curl -sL https://git.io/goreleaser | bash - on: - tags: true - condition: $TRAVIS_OS_NAME = linux + - provider: script + skip_cleanup: true + script: curl -sL https://git.io/goreleaser | bash + on: + tags: true + condition: $TRAVIS_OS_NAME = linux diff --git a/Makefile b/Makefile index 347f4dc..03d4f7e 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,10 @@ build: fmt test: fmt go list -mod=vendor $(TEST) | xargs -t -n4 go test $(TESTARGS) -mod=vendor -timeout=2m -parallel=4 +.PHONY: travis +travis: + go test -race -coverprofile=coverage.txt -covermode=atomic -mod=vendor $(TEST) + .PHONY: cover cover: go test $(TEST) -coverprofile=coverage.out