aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.circleci/config.yml11
1 files changed, 3 insertions, 8 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index a507f1f..28d8a8b 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -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