From d0cfe9ebad61634fd2dd8fc0794e637f7b52ca4f Mon Sep 17 00:00:00 2001 From: Arpad Ryszka Date: Sun, 5 Nov 2017 03:38:24 +0100 Subject: [PATCH] coverage publish task --- .gitignore | 1 + Makefile | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 3919a39..e6d1274 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.test *.out .coverprofile +codecov diff --git a/Makefile b/Makefile index 69eab68..85f6f9b 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,10 @@ cover: .coverprofile show-cover: .coverprofile go tool cover -html .coverprofile +publish-coverage: .coverprofile + curl -s https://codecov.io/bash -o codecov + CODECOV_TOKEN=a2b0290b-62b6-419f-bf61-4182e479aec4 bash codecov -f .coverprofile + cpu.out: $(SOURCES) $(PARSERS) go test -v -run TestMMLFile -cpuprofile cpu.out