From 3c38437b9341128685222d35f62e65f49252bc43 Mon Sep 17 00:00:00 2001 From: Simon Aronsson Date: Tue, 16 Apr 2019 10:00:30 +0200 Subject: [PATCH] send coverage to codacy --- .circleci/config.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7865950..8dff539 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -72,12 +72,11 @@ jobs: steps: - attach_workspace: at: . - - run: mkdir -p /tmp/test-results - run: go build ./... - - run: go get gotest.tools/gotestsum - - run: gotestsum --junitfile /tmp/test-results/unit-tests.xml - - store_test_results: - path: /tmp/test-results + - run: go get github.com/schrej/godacov + - run: go get -u github.com/haya14busa/goverage + - run: goverage -v -coverprofile=coverage.out ./... + - run: godacov -t $CODACY_TOKEN -r ./coverage.out -c $CIRCLE_SHA1 build: executor: go steps: