From 69a75fbcaa5e873098306186211058c0df2819f2 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Fri, 25 Jan 2019 12:55:13 +0300 Subject: [PATCH] Added codecov, goreport --- .codecov.yml | 8 ++++++++ .travis.yml | 6 +++++- README.md | 9 ++++++++- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 00000000..f91e5c1f --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,8 @@ +coverage: + status: + project: + default: + target: 40% + threshold: null + patch: false + changes: false diff --git a/.travis.yml b/.travis.yml index c0b08952..a4993ffe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,11 @@ install: script: - node -v - npm -v - - go test ./... + # Run tests + - go test -race -v -bench=. -coverprofile=coverage.txt -covermode=atomic ./... + # Make - make build/static/index.html - make +after_success: + - bash <(curl -s https://codecov.io/bash) \ No newline at end of file diff --git a/README.md b/README.md index 5d66a011..64fa5bc0 100644 --- a/README.md +++ b/README.md @@ -11,11 +11,18 @@ AdGuard.com | Wiki | Reddit | - Twitter + Twitter | + Telegram

Build status + + Code Coverage + + + Go Report Card + Latest release