-
Notifications
You must be signed in to change notification settings - Fork 3
/
bitrise.yml
197 lines (197 loc) · 7 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
---
format_version: 1.3.1
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
workflows:
feature:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- cache-pull: {}
- cocoapods-install: {}
- xcode-test:
inputs:
- scheme: Development
- simulator_device: iPhone 6
- output_tool: xcodebuild
- xcodebuild_test_options: "-enableCodeCoverage YES"
- should_build_before_test: 'no'
- codecov:
inputs:
- CODECOV_TOKEN: bccfa85f-ffdf-404d-a793-27a28e4c8c98
- other_options: -X xcodeplist -g "Pods/"
- deploy-to-bitrise-io:
inputs:
- notify_user_groups: none
- notify_email_list: ''
- cache-push:
inputs:
- cache_paths: "./Pods -> ./Podfile.lock"
- slack:
inputs:
- webhook_url: https://hooks.slack.com/services/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
- channel: "#ba-ios-v3"
- message: Pull Request Build Status Updated
- message_on_error: ''
- emoji: ''
- emoji_on_error: ''
- icon_url: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-icon-128.png
- icon_url_on_error: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-error-icon-128.png
before_run:
after_run:
- linter
master-integration:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- cache-pull: {}
- cocoapods-install: {}
- xcode-test:
inputs:
- scheme: Development
- simulator_device: iPhone 6
- output_tool: xcodebuild
- xcodebuild_test_options: "-enableCodeCoverage YES"
- should_build_before_test: 'no'
- codecov:
inputs:
- CODECOV_TOKEN: bccfa85f-ffdf-404d-a793-27a28e4c8c98
- other_options: -X xcodeplist -g "Pods/"
- deploy-to-bitrise-io:
inputs:
- notify_user_groups: none
- notify_email_list: ''
- cache-push:
inputs:
- cache_paths: "./Pods -> ./Podfile.lock"
- slack:
inputs:
- webhook_url: https://hooks.slack.com/services/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
- channel: "#ba-ios-v3"
- message: Master Integration Status Updated
- message_on_error: Master Integration Status Update Failed
- emoji: ''
- emoji_on_error: ''
- icon_url: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-icon-128.png
- icon_url_on_error: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-error-icon-128.png
before_run:
after_run:
staging:
steps:
- slack:
inputs:
- webhook_url: https://hooks.slack.com/services/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
- channel: "#ba-ios-v3"
- from_username: Bitrise CI
- message: Staging Build Initiated
- message_on_error: ''
- emoji: ''
- emoji_on_error: ''
- icon_url: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-icon-128.png
- icon_url_on_error: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-error-icon-128.png
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- fastlane:
inputs:
- lane: fabric
- deploy-to-bitrise-io:
inputs:
- notify_user_groups: none
- notify_email_list: ''
- slack:
inputs:
- webhook_url: https://hooks.slack.com/services/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
- channel: "#ba-ios-v3"
- message: Staging Build Deployed To Fabric
- message_on_error: Staging Build Failed
- emoji: ''
- emoji_on_error: ''
- icon_url: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-icon-128.png
- icon_url_on_error: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-error-icon-128.png
before_run:
after_run:
production:
steps:
- slack:
inputs:
- webhook_url: https://hooks.slack.com/services/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
- channel: "#ba-ios-v3"
- from_username: Bitrise CI
- message: Production Build Initiated
- message_on_error: ''
- emoji: ''
- emoji_on_error: ''
- icon_url: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-icon-128.png
- icon_url_on_error: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-error-icon-128.png
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- script:
inputs:
- content: |-
if [ ! -z "$PRODUCTION_PASSWORD" ] ; then
envman add --key FASTLANE_PASSWORD --value "$PRODUCTION_PASSWORD"
fi
- fastlane:
inputs:
- lane: itunes_connect
- deploy-to-bitrise-io:
inputs:
- notify_user_groups: none
- notify_email_list: ''
- slack:
inputs:
- webhook_url: https://hooks.slack.com/services/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
- channel: "#ba-ios-v3"
- message: Production Build Deployed To iTunes Connect And In Review
- message_on_error: Production Build Failed
- emoji: ''
- emoji_on_error: ''
- icon_url: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-icon-128.png
- icon_url_on_error: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-error-icon-128.png
before_run:
after_run:
linter:
steps:
- activate-ssh-key:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- cache-pull: {}
- cocoapods-install: {}
- swiftlint:
inputs:
- linting_path: "$BITRISE_SOURCE_DIR"
- deploy-to-bitrise-io: {}
- cache-push: {}
- slack:
inputs:
- icon_url: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-icon-128.png
- icon_url_on_error: https://bitrise-public-content-production.s3.amazonaws.com/slack/bitrise-slack-error-icon-128.png
- emoji_on_error: ''
- emoji: ''
- channel: "#ba-ios-v2"
- message: Swiftlint looks good
- message_on_error: Swiftlint failed
- webhook_url: https://hooks.slack.com/services/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
before_run:
after_run:
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: BaseApp.xcworkspace
- opts:
is_expand: false
BITRISE_SCHEME: Development
- opts:
is_expand: true
FASTLANE_DONT_STORE_PASSWORD: '1'
trigger_map:
- push_branch: master
workflow: master-integration
- pull_request_target_branch: "*"
workflow: feature
- tag: v*.*.*
workflow: staging