Skip to content

Commit 999872f

Browse files
committed
Initial 1.0.1 release of the Codecov CircleCI orb
0 parents  commit 999872f

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sw[op]

orb.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 2.1
2+
3+
description: Upload your coverage reports to Codecov without dealing with complex configurations. This orb helps you get coverage results quickly so that you can breathe easier and commit your code with confidence.
4+
5+
commands:
6+
upload:
7+
parameters:
8+
conf:
9+
description: Used to specify the location of the .codecov.yml config file
10+
type: string
11+
default: ".codecov.yml"
12+
file:
13+
description: Path to the code coverage data file to upload.
14+
type: string
15+
flags:
16+
description: Flag the upload to group coverage metrics (e.g. unittests | integration | ui,chrome)
17+
type: string
18+
default: ""
19+
token:
20+
description: Set the private repository token (defaults to environment variable $CODECOV_TOKEN)
21+
type: string
22+
default: ${CODECOV_TOKEN}
23+
upload_name:
24+
description: Custom defined name of the upload. Visible in Codecov UI
25+
type: string
26+
default: ${CIRCLE_BUILD_NUM}
27+
steps:
28+
- run:
29+
name: Upload Coverage Results
30+
command: |
31+
bash <(curl -s https://codecov.io/bash) \
32+
-F << parameters.flags >> \
33+
-f << parameters.file >> \
34+
-n << parameters.upload_name >> \
35+
-t << parameters.token >> \
36+
-y << parameters.conf >> \

0 commit comments

Comments
 (0)