1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-10 11:10:33 +02:00

Updated codecov settings

This commit is contained in:
Tim Voronov 2018-11-05 11:36:55 -05:00
parent 34b7efa859
commit 4032e8dd7c
2 changed files with 22 additions and 5 deletions

21
.codecov.yml Normal file
View File

@ -0,0 +1,21 @@
ignore:
# Ignore coverage for generated code.
- "pkg/parser"
coverage:
range: 70..100
round: nearest
precision: 1
status:
project:
default:
enabled: yes
threshold: 2%
patch: no
changes: no
comment:
layout: "header, diff"
behavior: once
require_changes: yes

View File

@ -25,12 +25,8 @@ test:
go test -race ${DIR_PKG}/...
cover:
go test -race -coverprofile=coverage.txt -covermode=atomic ${DIR_PKG}/...
ifneq ($(CODECOV_TOKEN), )
go test -race -coverprofile=coverage.txt -covermode=atomic ${DIR_PKG}/... && \
curl -s https://codecov.io/bash | bash
else
$(error "CODECOV_TOKEN token is required")
endif
e2e:
go run ${DIR_E2E}/main.go --tests ${DIR_E2E}/tests --pages ${DIR_E2E}/pages