From 74940234430b8da70a9bbccfe2ad7fc8202770da Mon Sep 17 00:00:00 2001 From: anishakj Date: Mon, 2 Aug 2021 06:25:16 -0700 Subject: [PATCH 1/2] Adding codecov for PR validation task Signed-off-by: anishakj --- .codecov.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..56e529fab --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,32 @@ +# +# Copyright Pravega Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +codecov: + require_ci_to_pass: yes + max_report_age: off + notify: + wait_for_ci: yes + +coverage: + status: + project: + default: + threshold: 0.5% + patch: + default: + target: 80% + ignore: + - "**/generated/**" + - "test" From a98065a74e21b057f013a2c46444f46cafc5e5dc Mon Sep 17 00:00:00 2001 From: anishakj Date: Mon, 2 Aug 2021 06:57:03 -0700 Subject: [PATCH 2/2] updating target to 70% Signed-off-by: anishakj --- .codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.codecov.yml b/.codecov.yml index 56e529fab..285bc5780 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -26,7 +26,7 @@ coverage: threshold: 0.5% patch: default: - target: 80% + target: 70% ignore: - "**/generated/**" - "test"