Skip to content

Commit

Permalink
Add coveralls configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbjohnson committed Mar 1, 2019
1 parent 905d9a0 commit f83aed5
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,10 @@ jobs:
- image: circleci/golang:1.12

steps:
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run: go get github.com/mattn/goveralls

- checkout

- run: go test -v .
- run: go test -v -covermode=count -coverprofile=/tmp/coverage.out .

- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- run: /go/bin/goveralls -coverprofile=/tmp/coverage.out -service circle-ci -repotoken $COVERALLS_TOKEN

0 comments on commit f83aed5

Please sign in to comment.