|
| 1 | +--- |
1 | 2 | format_version: "5"
|
2 | 3 | default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
|
3 | 4 | app:
|
4 | 5 | envs:
|
5 |
| - - CI_OPTIONS: -Z |
6 |
| - - LOCAL_OPTIONS: -Z -d |
7 |
| - - OS: macos |
| 6 | + - LOCAL_OPTIONS: -Z -d |
| 7 | + - OS: macos |
8 | 8 | workflows:
|
9 | 9 | test-ci:
|
10 | 10 | 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 |
34 | 34 | test-local:
|
35 | 35 | 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 |
50 | 50 | audit-this-step:
|
51 | 51 | 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 |
58 | 58 | 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 |
0 commit comments