]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add codecov.yml file to repo, previously stored at codecov.io. coverage-flags
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Tue, 23 Mar 2021 18:17:19 +0000 (19:17 +0100)
committerHans Kristian Rosbach <hk-git@circlestorm.org>
Fri, 26 Mar 2021 09:02:13 +0000 (10:02 +0100)
Add flags so we can distinguish between the library and the tests.
Add more detailed coverage badges to README.md.

README.md
codecov.yml [new file with mode: 0644]

index 68d935a42ac0fc54a6f64ee3a8b9fd70793f87b0..ce945e3e189e50f0222a5d69797556121064a52b 100644 (file)
--- 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 (file)
index 0000000..5b1e8c8
--- /dev/null
@@ -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/.*"