Skip to content

Commit e1c2169

Browse files
dougnukemarmfazh
authored andcommitted
add codecov.io to ci and readme badge
1 parent 079bd20 commit e1c2169

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.circleci/config.yml

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ version: 2.1
2222
name: "Run coverage on Linux"
2323
command:
2424
make cover
25+
- run:
26+
name: "Upload coverage to codecov"
27+
command:
28+
bash <(curl -s https://codecov.io/bash) -f build/coverage/coverage.txt
2529

2630
- store_artifacts:
2731
path: build/coverage/coverage.html

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![CircleCI](https://circleci.com/gh/cloudflare/circl/tree/master.svg?style=svg)](https://circleci.com/gh/cloudflare/circl/tree/master)
55
[![GoDoc](https://godoc.org/github.com/cloudflare/circl?status.svg)](https://godoc.org/github.com/cloudflare/circl)
66
[![Go Report Card](https://goreportcard.com/badge/github.com/cloudflare/circl)](https://goreportcard.com/report/github.com/cloudflare/circl)
7+
[![codecov](https://codecov.io/gh/cloudflare/circl/branch/master/graph/badge.svg)](https://codecov.io/gh/cloudflare/circl)
78

89
**CIRCL** (Cloudflare Interoperable, Reusable Cryptographic Library) is a collection
910
of cryptographic primitives written in Go. The goal of this library is to be used as a tool for

codecov.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Default codecoverage configuration https://docs.codecov.io/docs/codecov-yaml
2+
codecov:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
range: "70...100"
9+
10+
parsers:
11+
gcov:
12+
branch_detection:
13+
conditional: yes
14+
loop: yes
15+
method: no
16+
macro: no
17+
18+
comment:
19+
layout: "reach,diff,flags,tree"
20+
behavior: default
21+
require_changes: no

0 commit comments

Comments
 (0)