coverage publish task

This commit is contained in:
Arpad Ryszka 2017-11-05 03:38:24 +01:00
parent 72f47e1241
commit d0cfe9ebad
2 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.test *.test
*.out *.out
.coverprofile .coverprofile
codecov

View File

@ -24,6 +24,10 @@ cover: .coverprofile
show-cover: .coverprofile show-cover: .coverprofile
go tool cover -html .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) cpu.out: $(SOURCES) $(PARSERS)
go test -v -run TestMMLFile -cpuprofile cpu.out go test -v -run TestMMLFile -cpuprofile cpu.out