From f83aed5c8d1ccd6cfafb914268d3144100e894e4 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 1 Mar 2019 14:56:25 -0700 Subject: Add coveralls configuration. --- .circleci/config.yml | 11 +++-------- 1 file 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 -- cgit v1.2.3