From 5dff46506166e2daf2e092ddb2eb60e3bb8ed5f7 Mon Sep 17 00:00:00 2001 From: Dan Markham Date: Fri, 5 Apr 2019 01:30:06 -0700 Subject: [PATCH] Getting coverage setup --- .gitignore | 2 +- .travis.yml | 1 + Makefile | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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