Skip to content

Commit dfec5a3

Browse files
Merge pull request #45 from codecov/use-cli
feat: use the new CLI/wrapper
2 parents 3710b24 + 9992c84 commit dfec5a3

File tree

8 files changed

+542
-152
lines changed

8 files changed

+542
-152
lines changed

.bitrise.secrets.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.bitrise*
1+
.bitrise.secrets.yml
22
*.py[oc]
33
.coverage
44
_tmp

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "src/scripts"]
2+
path = src/scripts
3+
url = https://github.com/codecov/wrapper
4+
branch = main

bitrise.yml

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
1+
---
12
format_version: "5"
23
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
34
app:
45
envs:
5-
- CI_OPTIONS: -Z
6-
- LOCAL_OPTIONS: -Z -d
7-
- OS: macos
6+
- LOCAL_OPTIONS: -Z -d
7+
- OS: macos
88
workflows:
99
test-ci:
1010
steps:
11-
- activate-ssh-key@4:
12-
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
13-
- git-clone@8: {}
14-
- script:
15-
inputs:
16-
- content: |-
17-
pip3 install -r app/requirements.txt
18-
pytest --cov app
19-
- path::/Users/vagrant/git:
20-
title: Step Test
21-
run_if: true
22-
is_skippable: false
23-
inputs:
24-
- CODECOV_TOKEN: $CODECOV_TOKEN
25-
- OS: $OS
26-
- other_options: $CI_OPTIONS
27-
- script:
28-
title: Step audit
29-
inputs:
30-
- content: |-
31-
#!/bin/bash
32-
set -ex
33-
stepman audit --step-yml ./step.yml
11+
- activate-ssh-key@4:
12+
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
13+
- git-clone@8: {}
14+
- script:
15+
inputs:
16+
- content: |-
17+
pip3 install -r app/requirements.txt
18+
python3 -m pytest ./app --cov app
19+
python3 -m coverage xml
20+
- path::/Users/vagrant/git:
21+
title: Step Test
22+
run_if: true
23+
is_skippable: false
24+
inputs:
25+
- CC_TOKEN: $CODECOV_TOKEN
26+
- CC_FAIL_ON_ERROR: true
27+
- script:
28+
title: Step audit
29+
inputs:
30+
- content: |-
31+
#!/bin/bash
32+
set -ex
33+
stepman audit --step-yml ./step.yml
3434
test-local:
3535
steps:
36-
- git-clone@8: {}
37-
- script:
38-
inputs:
39-
- content: |-
40-
pip3 install -r app/requirements.txt
41-
pytest --cov app
42-
- path::./:
43-
title: Step Test
44-
run_if: true
45-
is_skippable: false
46-
inputs:
47-
- CODECOV_TOKEN: ${CODECOV_TOKEN}
48-
- OS: $OS
49-
- other_options: $LOCAL_OPTIONS
36+
- git-clone@8: {}
37+
- script:
38+
inputs:
39+
- content: |-
40+
pip3 install -r app/requirements.txt
41+
python3 -m pytest ./app --cov app
42+
- path::./:
43+
title: Step Test
44+
run_if: true
45+
is_skippable: false
46+
inputs:
47+
- CC_TOKEN: ${CODECOV_TOKEN}
48+
- CC_FAIL_ON_ERROR: true
49+
- CC_DRY_RUN: true
5050
audit-this-step:
5151
steps:
52-
- script:
53-
inputs:
54-
- content: |-
55-
#!/bin/bash
56-
set -ex
57-
stepman audit --step-yml ./step.yml
52+
- script:
53+
inputs:
54+
- content: |-
55+
#!/bin/bash
56+
set -ex
57+
stepman audit --step-yml ./step.yml
5858
trigger_map:
59-
- push_branch: main
60-
workflow: test-ci
61-
- pull_request_target_branch: main
62-
workflow: test-ci
59+
- push_branch: main
60+
workflow: test-ci
61+
- pull_request_target_branch: main
62+
workflow: test-ci

commit-hooks/pre-commit renamed to hooks/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
set -e
44

5+
cp src/scripts/dist/codecov.sh ./step.sh
6+
chmod u+x step.sh
7+
git add step.sh
8+
59
bitrise validate
610
bitrise run audit-this-step
711
bitrise run test-local

src/scripts

Submodule scripts added at 2591517

0 commit comments

Comments
 (0)