diff --git a/.gitignore b/.gitignore index 21a0554..c62ba7b 100644 --- a/.gitignore +++ b/.gitignore @@ -20,7 +20,7 @@ _cgo_gotypes.go _cgo_export.* _testmain.go - +coverage.txt *.exe *.test *.prof diff --git a/.travis.yml b/.travis.yml index a98a4c1..7e95c09 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ env: - GO111MODULE=on after_success: - make build-cli +- bash <(curl -s https://codecov.io/bash) deploy: provider: releases api_key: diff --git a/Makefile b/Makefile index 07dc8db..7793887 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ test: - go test -v ./... + go test -race -coverprofile=coverage.txt -covermode=atomic build-cli: clean -mkdir -p ./cli/build