From 72e95e88ac948d53e7ed7637a7384453520588de Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Tue, 11 Dec 2018 17:08:31 +0100 Subject: [PATCH] Geneate and upload the test coverage report to codecove.io --- .travis.yml | 3 +++ Makefile | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 0eac756..2f293d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,3 +19,6 @@ install: script: make test +after_success: + - make test-coverage + - bash <(curl -s https://codecov.io/bash) diff --git a/Makefile b/Makefile index 1ed0069..f63ebe8 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,9 @@ test: bootstrap gosec ./... ginkgo -r -v +test-coverage: + go test -race -coverprofile=coverage.txt -covermode=atomic + build: go build -o $(BIN) ./cmd/gosec/