Add test-codecov to Makefile and travis.yml #58

This commit is contained in:
Michael Mayer 2018-11-06 16:47:17 +01:00
parent ebaa3d3622
commit 810d8a7bb5
2 changed files with 6 additions and 8 deletions

View file

@ -40,9 +40,10 @@ test:
$(GOTEST) -timeout 20m -v ./internal/...
test-race:
$(GOTEST) -race -timeout 60m -v ./internal/...
test-coverage:
test-codecov:
$(GOTEST) -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/...
test-coverage-html:
bash <(curl -s https://codecov.io/bash)
test-coverage:
$(GOTEST) -timeout 30m -coverprofile=coverage.txt -covermode=atomic -v ./internal/...
$(GOTOOL) cover -html=coverage.txt -o coverage.html
clean: