-
Notifications
You must be signed in to change notification settings - Fork 3
/
bitrise.yml
62 lines (62 loc) · 1.61 KB
/
bitrise.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
format_version: "5"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- LOCAL_OPTIONS: -Z -d
- OS: macos
workflows:
test-ci:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- script:
inputs:
- content: |-
pip3 install -r app/requirements.txt
python3 -m pytest ./app --cov app
python3 -m coverage xml
- path::/Users/vagrant/git:
title: Step Test
run_if: true
is_skippable: false
inputs:
- CC_TOKEN: $CODECOV_TOKEN
- CC_FAIL_ON_ERROR: true
- script:
title: Step audit
inputs:
- content: |-
#!/bin/bash
set -ex
stepman audit --step-yml ./step.yml
test-local:
steps:
- git-clone@8: {}
- script:
inputs:
- content: |-
pip3 install -r app/requirements.txt
python3 -m pytest ./app --cov app
- path::./:
title: Step Test
run_if: true
is_skippable: false
inputs:
- CC_TOKEN: ${CODECOV_TOKEN}
- CC_FAIL_ON_ERROR: true
- CC_DRY_RUN: true
audit-this-step:
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -ex
stepman audit --step-yml ./step.yml
trigger_map:
- push_branch: main
workflow: test-ci
- pull_request_target_branch: main
workflow: test-ci