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/