From 9ad62ac41894d9651662137ccdd461b8305fa577 Mon Sep 17 00:00:00 2001 From: Ben Johnson Date: Fri, 1 Mar 2019 16:11:28 -0700 Subject: [PATCH] Add codecov support. --- .circleci/config.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 28d8a8b..da2ca69 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -5,10 +5,9 @@ jobs: - image: circleci/golang:1.12 steps: - - run: go get github.com/mattn/goveralls - - checkout - - run: go test -v -covermode=count -coverprofile=/tmp/coverage.out . + - run: go test -v -covermode=atomic -coverprofile=coverage.txt . + + - run: bash <(curl -s https://codecov.io/bash) - - run: /go/bin/goveralls -coverprofile=/tmp/coverage.out -service circle-ci -repotoken $COVERALLS_TOKEN