Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
CodeCov: Create flags
Browse files Browse the repository at this point in the history
Added flag: cli for cli project
Added flag: plugin for java
  • Loading branch information
VijayanB committed Aug 6, 2020
1 parent edbc016 commit e61ac1e
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,5 @@ jobs:
uses: codecov/codecov-action@v1
with:
file: ./build/reports/jacoco/test/jacocoTestReport.xml
flags: plugin

2 changes: 1 addition & 1 deletion .github/workflows/esad-cli-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ jobs:
with:
token: ${{secrets.CODECOV_TOKEN}}
file: cli/coverage.out
flags: unittests
flags: cli
name: codecov-umbrella
1 change: 1 addition & 0 deletions cli/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![AD CLI Test](https://github.com/opendistro-for-elasticsearch/anomaly-detection/workflows/AD%20CLI%20Test%20and%20Build/badge.svg)](https://github.com/opendistro-for-elasticsearch/anomaly-detection/actions?query=workflow%3A%22AD+CLI+Test+and+Build%22+branch%3Amaster)
[![codecov](https://codecov.io/gh/opendistro-for-elasticsearch/anomaly-detection/branch/master/graph/badge.svg?flag=cli)](https://codecov.io/gh/opendistro-for-elasticsearch/anomaly-detection)
# Open Distro for Elasticsearch AD CLI

The AD CLI component in Open Distro for Elasticsearch (ODFE) is a command line interface for ODFE AD plugin.
Expand Down
29 changes: 29 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
coverage:
status:
project:
default:
target: auto
plugin:
target: auto
paths:
- "!cli/"
flags:
- plugin
cli:
target: 75%
paths:
- "cli/"
flags:
- cli
comment:
layout: "reach, diff, flags, files"
behavior: default
require_changes: false
require_base: no
require_head: no
branches: null
flags:
plugin:
carryforward: false
cli:
carryforward: true

0 comments on commit e61ac1e

Please sign in to comment.