Geneate and upload the test coverage report to codecove.io

This commit is contained in:
Cosmin Cojocar 2018-12-11 17:08:31 +01:00
parent 24e3094d2a
commit 72e95e88ac
2 changed files with 6 additions and 0 deletions

View file

@ -19,3 +19,6 @@ install:
script: make test
after_success:
- make test-coverage
- bash <(curl -s https://codecov.io/bash)

View file

@ -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/