From 49228394b83ce66ccf55ba06dae5f73bd807f378 Mon Sep 17 00:00:00 2001 From: Hans Kristian Rosbach Date: Tue, 23 Mar 2021 19:17:19 +0100 Subject: [PATCH] Add codecov.yml file to repo, previously stored at codecov.io. Add flags so we can distinguish between the library and the tests. Add more detailed coverage badges to README.md. --- README.md | 4 ++- codecov.yml | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/README.md b/README.md index 68d935a4..ce945e3e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ Maintained by Hans Kristian Rosbach |Buildkite|[![Build status](https://badge.buildkite.com/7bb1ef84356d3baee26202706cc053ee1de871c0c712b65d26.svg?branch=develop)](https://buildkite.com/circlestorm-productions/zlib-ng)| |CodeFactor|[![CodeFactor](https://www.codefactor.io/repository/github/zlib-ng/zlib-ng/badge)](https://www.codefactor.io/repository/github/zlib-ng/zlib-ng)| |OSS-Fuzz|[![Fuzzing Status](https://oss-fuzz-build-logs.storage.googleapis.com/badges/zlib-ng.svg)](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:zlib-ng) -|Codecov|[![codecov.io](https://codecov.io/github/zlib-ng/zlib-ng/coverage.svg?branch=develop)](https://codecov.io/github/zlib-ng/zlib-ng/)| +|Coverage Stable|zlib-ng: [![codecov.io](https://codecov.io/gh/zlib-ng/zlib-ng/branch/stable/graph/badge.svg?flag=zlib-ng)](https://codecov.io/github/zlib-ng/zlib-ng/branch/stable) tests: [![codecov.io](https://codecov.io/gh/zlib-ng/zlib-ng/branch/stable/graph/badge.svg?flag=tests)](https://codecov.io/github/zlib-ng/zlib-ng/branch/stable)| +|Coverage Develop|zlib-ng: [![codecov.io](https://codecov.io/gh/zlib-ng/zlib-ng/branch/develop/graph/badge.svg?flag=zlib-ng)](https://codecov.io/github/zlib-ng/zlib-ng/branch/develop) tests: [![codecov.io](https://codecov.io/gh/zlib-ng/zlib-ng/stable/develop/graph/badge.svg?flag=tests)](https://codecov.io/github/zlib-ng/zlib-ng/branch/develop)| +|Coverage coverage-flags|zlib-ng: [![codecov.io](https://codecov.io/gh/zlib-ng/zlib-ng/branch/coverage-flags/graph/badge.svg?flag=zlib-ng)](https://codecov.io/github/zlib-ng/zlib-ng/branch/coverage-flags) tests: [![codecov.io](https://codecov.io/gh/zlib-ng/zlib-ng/stable/coverage-flags/graph/badge.svg?flag=tests)](https://codecov.io/github/zlib-ng/zlib-ng/branch/coverage-flags)| Features diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..5b1e8c8f --- /dev/null +++ b/codecov.yml @@ -0,0 +1,97 @@ +codecov: + max_report_age: 72h + +coverage: + status: + project: + default: + threshold: 0.07% + zlib-ng: + target: 80% + flags: + - zlib-ng + tests: + target: 50% + flags: + - tests + +comment: + require_head: no # default yes + require_base: no # default yes + +flags: + zlib-ng: + paths: + - arch/ + - adler32.c + - adler32_p.h + - chunkset.c + - chunkset_tpl.h + - compare258.c + - compress.c + - crc32.c + - crc32_comb.c + - crc32_comb_tbl.h + - crc32_p.h + - crc32_tbl.h + - deflate.c + - deflate_fast.c + - deflate.h + - deflate_medium.c + - deflate_p.h + - deflate_quick.c + - deflate_slow.c + - fallback_builtins.h + - functable.c + - functable.h + - gzguts.h + - gzlib.c + - gzread.c + - gzwrite.c + - infback.c + - inffast.c + - inffast.h + - inffixed_tbl.h + - inflate.c + - inflate.h + - inflate_p.h + - inftrees.c + - inftrees.h + - insert_string.c + - insert_string_tpl.h + - match_tpl.h + - trees.c + - trees_emit.h + - trees.h + - trees_tbl.h + - uncompr.c + - zbuild.h + - zconf.h + - zconf-ng.h + - zendian.h + - zlib.h + - zlib-ng.h + - zutil.c + - zutil.h + - zutil_p.h + tests: + paths: + - test/ + - tools/ + +fixes: + - "/home/runner/work/zlib-ng/zlib-ng/::" + - "/home/runner/work/zlib-ng/build/::" + - "/build/home/runner/work/zlib-ng/zlib-ng/::" + - "/build/home/runner/work/zlib-ng/build/::" + +ignore: + - "usr/include/.*" + - "/usr/include/.*" + - "/build/usr/include/.*" + - "usr/lib/.*" + - "/usr/lib/.*" + - "/build/usr/lib/.*" + - "usr/lib64/.*" + - "/usr/lib64/.*" + - "/build/usr/lib64/.*" -- 2.47.2