Skip to content

Commit

Permalink
chore(travis): add code coverage report and tip go version
Browse files Browse the repository at this point in the history
  • Loading branch information
menski committed Nov 11, 2019
1 parent df8a7dd commit 0fe4375
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0fe4375

Please sign in to comment.