-
Notifications
You must be signed in to change notification settings - Fork 9
/
bitrise.yml
executable file
·182 lines (169 loc) · 5.94 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
format_version: "6"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
# define these in your .bitrise.secrets.yml
- BITRISE_SCAN_RESULT_POST_URL: $BITRISE_SCAN_RESULT_POST_URL
- BITRISE_APP_API_TOKEN: $BITRISE_APP_API_TOKEN
workflows:
# ----------------------------------------------------------------
# --- workflow to Step Test
sample:
envs:
# Define your local project's root directory here
- PROJECT_DIR: "<local_project_dir>"
steps:
- path::./:
title: Step Test
inputs:
- scan_dir: $PROJECT_DIR
- scan_result_submit_url: "path::./_scan_result/scan_result.json"
- scan_result_submit_api_token: ""
test:
before_run:
- audit-this-step
- test_repo_clone
title: Bitrise Init Test
description: Bitrise Init Test
envs:
- CLONE_INTO_DIR: _tmp
- ORIG_BITRISE_SOURCE_DIR: $BITRISE_SOURCE_DIR
steps:
- go-list:
- golint:
- errcheck:
- go-test:
- script:
title: "Scan test: ios-no-shared-schemes"
inputs:
- content: |-
#!/bin/bash
set -x
rm -rf $ORIG_BITRISE_SOURCE_DIR/_tmp
SAMPLE_APP_REPOSITORY_URL=https://github.com/bitrise-samples/ios-no-shared-schemes.git
git clone $SAMPLE_APP_REPOSITORY_URL $CLONE_INTO_DIR
- path::./:
title: Step Test
inputs:
- scan_dir: $CLONE_INTO_DIR
- output_dir: $ORIG_BITRISE_SOURCE_DIR/result
- scan_result_submit_url: $BITRISE_SCAN_RESULT_POST_URL
- scan_result_submit_api_token: $BITRISE_APP_API_TOKEN
- script:
title: "Scan test: sample-apps-ios-simple-objc"
inputs:
- content: |-
#!/bin/bash
set -x
rm -rf $CLONE_INTO_DIR
SAMPLE_APP_REPOSITORY_URL=https://github.com/bitrise-io/sample-apps-ios-simple-objc.git
git clone $SAMPLE_APP_REPOSITORY_URL $CLONE_INTO_DIR
- path::./:
title: Step Test
inputs:
- scan_dir: $CLONE_INTO_DIR
- output_dir: $ORIG_BITRISE_SOURCE_DIR/result
- scan_result_submit_url: $BITRISE_SCAN_RESULT_POST_URL
- scan_result_submit_api_token: $BITRISE_APP_API_TOKEN
- script:
title: "Scan test: sample-apps-android-sdk22"
inputs:
- content: |-
#!/bin/bash
set -x
rm -rf $CLONE_INTO_DIR
SAMPLE_APP_REPOSITORY_URL=https://github.com/bitrise-samples/sample-apps-android-sdk22.git
git clone $SAMPLE_APP_REPOSITORY_URL ./_tmp/sample-repo
- path::./:
title: Step Test
inputs:
- scan_dir: $CLONE_INTO_DIR
- output_dir: $ORIG_BITRISE_SOURCE_DIR/result
- scan_result_submit_url: $BITRISE_SCAN_RESULT_POST_URL
- scan_result_submit_api_token: $BITRISE_APP_API_TOKEN
- script:
title: "Scan test: sample-apps-ios-watchkit"
inputs:
- content: |-
#!/bin/bash
set -x
rm -rf $CLONE_INTO_DIR
SAMPLE_APP_REPOSITORY_URL=https://github.com/bitrise-io/sample-apps-ios-watchkit.git
git clone $SAMPLE_APP_REPOSITORY_URL ./_tmp/sample-repo
- path::./:
title: Step Test
inputs:
- scan_dir: $CLONE_INTO_DIR
- output_dir: $ORIG_BITRISE_SOURCE_DIR/result
- scan_result_submit_url: $BITRISE_SCAN_RESULT_POST_URL
- scan_result_submit_api_token: $BITRISE_APP_API_TOKEN
- script:
title: "Scanner test: fastlane"
inputs:
- content: |-
#!/bin/bash
set -x
rm -rf $CLONE_INTO_DIR
SAMPLE_APP_REPOSITORY_URL=https://github.com/bitrise-samples/fastlane.git
git clone $SAMPLE_APP_REPOSITORY_URL $CLONE_INTO_DIR
- path::./:
title: Step Test
inputs:
- scan_dir: $CLONE_INTO_DIR
- output_dir: $ORIG_BITRISE_SOURCE_DIR/result
- scan_result_submit_url: $BITRISE_SCAN_RESULT_POST_URL
- scan_result_submit_api_token: $BITRISE_APP_API_TOKEN
- script:
title: "Scan test: android-non-executable-gradlew"
inputs:
- content: |-
#!/bin/bash
set -x
rm -rf $CLONE_INTO_DIR
SAMPLE_APP_REPOSITORY_URL=https://github.com/bitrise-samples/android-non-executable-gradlew.git
git clone $SAMPLE_APP_REPOSITORY_URL $CLONE_INTO_DIR
- path::./:
title: Step Test
inputs:
- scan_dir: $CLONE_INTO_DIR
- output_dir: $ORIG_BITRISE_SOURCE_DIR/result
- scan_result_submit_url: $BITRISE_SCAN_RESULT_POST_URL
- scan_result_submit_api_token: $BITRISE_APP_API_TOKEN
test_repo_clone:
envs:
- CLONE_INTO_DIR: _tmp
- ORIG_BITRISE_SOURCE_DIR: $BITRISE_SOURCE_DIR
steps:
- script:
title: "Scan test built in repo clone"
inputs:
- content: |-
#!/bin/bash
set -x
rm -rf $CLONE_INTO_DIR
mkdir $CLONE_INTO_DIR
SAMPLE_APP_REPOSITORY_URL=https://github.com/bitrise-io/sample-apps-ios-simple-objc.git
envman add --key SAMPLE_APP_REPOSITORY_URL --value $SAMPLE_APP_REPOSITORY_URL
- path::./:
title: Step Test
inputs:
- scan_dir: $CLONE_INTO_DIR
- output_dir: $ORIG_BITRISE_SOURCE_DIR/result
- scan_result_submit_url: $BITRISE_SCAN_RESULT_POST_URL
- scan_result_submit_api_token: $BITRISE_APP_API_TOKEN
- enable_repo_clone: "yes"
- repository_url: $SAMPLE_APP_REPOSITORY_URL
- branch: master
generate_readme:
steps:
- git::https://github.com/bitrise-steplib/steps-readme-generator.git@main: {}
# ----------------------------------------------------------------
# --- workflows to Share this step into a Step Library
audit-this-step:
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -ex
stepman audit --step-yml ./step.yml