Skip to content

Commit

Permalink
Enable coverage report on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmachado committed Jul 22, 2018
1 parent c6eec37 commit b5b36fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
- run: go get -u github.com/golang/dep/cmd/dep
- run: dep ensure -vendor-only
- run: go get -u github.com/jstemmer/go-junit-report
- run: go get -u github.com/mattn/goveralls
- run:
command: |
trap "go-junit-report <${TEST_RESULTS}/go-test.out > ${TEST_RESULTS}/go-test-report.xml" EXIT
go test -v ./... | tee ${TEST_RESULTS}/go-test.out
go test -cover -race -coverprofile=${TEST_RESULTS}/coverage.out -v ./... | tee ${TEST_RESULTS}/go-test.out
- run: goveralls -coverprofile=${TEST_RESULTS}/coverage.out -service=circle-ci -repotoken="${COVERALLS_TOKEN}"
- store_artifacts:
path: /tmp/test-results
destination: raw-test-output
Expand Down

0 comments on commit b5b36fc

Please sign in to comment.