|
1 | 1 | version: 2.1
|
2 | 2 |
|
3 | 3 | orbs:
|
4 |
| - # codecov: codecov/codecov@1 |
5 |
| - # https://github.com/codecov/codecov-circleci-orb/pull/17 |
6 |
| - codecov: |
7 |
| - commands: |
8 |
| - upload: |
9 |
| - parameters: |
10 |
| - conf: |
11 |
| - description: Used to specify the location of the .codecov.yml config file |
12 |
| - type: string |
13 |
| - default: ".codecov.yml" |
14 |
| - file: |
15 |
| - description: Path to the code coverage data file to upload. |
16 |
| - type: string |
17 |
| - default: "" |
18 |
| - flags: |
19 |
| - description: Flag the upload to group coverage metrics (e.g. unittests | integration | ui,chrome) |
20 |
| - type: string |
21 |
| - default: "" |
22 |
| - token: |
23 |
| - description: Set the private repository token (defaults to environment variable $CODECOV_TOKEN) |
24 |
| - type: string |
25 |
| - default: ${CODECOV_TOKEN} |
26 |
| - upload_name: |
27 |
| - description: Custom defined name of the upload. Visible in Codecov UI |
28 |
| - type: string |
29 |
| - default: ${CIRCLE_BUILD_NUM} |
30 |
| - steps: |
31 |
| - - when: |
32 |
| - condition: << parameters.file >> |
33 |
| - steps: |
34 |
| - - run: |
35 |
| - name: Upload Coverage Results |
36 |
| - command: | |
37 |
| - curl -s https://codecov.io/bash | bash -s -- \ |
38 |
| - -f "<< parameters.file >>" \ |
39 |
| - -t "<< parameters.token >>" \ |
40 |
| - -n "<< parameters.upload_name >>" \ |
41 |
| - -y "<< parameters.conf >>" \ |
42 |
| - -F "<< parameters.flags >>" \ |
43 |
| - -Z || echo 'Codecov upload failed' |
44 |
| - - unless: |
45 |
| - condition: << parameters.file >> |
46 |
| - steps: |
47 |
| - - run: |
48 |
| - name: Upload Coverage Results |
49 |
| - command: | |
50 |
| - curl -s https://codecov.io/bash | bash -s -- \ |
51 |
| - -t "<< parameters.token >>" \ |
52 |
| - -n "<< parameters.upload_name >>" \ |
53 |
| - -y "<< parameters.conf >>" \ |
54 |
| - -F "<< parameters.flags >>" \ |
55 |
| - -Z || echo 'Codecov upload failed' |
| 4 | + codecov: codecov/codecov@1 |
56 | 5 | coveralls:
|
57 | 6 | commands:
|
58 | 7 | upload:
|
|
0 commit comments