-
Notifications
You must be signed in to change notification settings - Fork 4
/
bitrise.yml
180 lines (166 loc) · 5 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
format_version: "9"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
app:
envs:
- SAMPLE_APP_URL: https://github.com/bitrise-io/sample-apps-xamarin-cross-platform.git
- SAMPLE_APP_BRANCH: master
- BITRISE_PROJECT_PATH: ./_tmp/Multiplatform.sln
- BITRISE_XAMARIN_CONFIGURATION: Release
- BITRISE_XAMARIN_PLATFORM: iPhone
workflows:
# ----------------------------------------------------------------
# --- workflow to Step Test
ci:
before_run:
- audit-this-step
after_run:
- test_ios
- test_android_custom_options
- test_android_aab
steps:
- go-list:
- golint:
- errcheck:
- go-test:
setup_test:
envs:
- SAMPLE_APP_BRANCH: $SAMPLE_APP_BRANCH
steps:
- script:
title: Cleanup _tmp dir
inputs:
- content: |-
#!/bin/bash
set -ex
rm -rf ./_tmp
- git::https://github.com/bitrise-steplib/bitrise-step-simple-git-clone.git:
inputs:
- repository_url: $SAMPLE_APP_URL
- clone_into_dir: ./_tmp
- branch: $SAMPLE_APP_BRANCH
- certificate-and-profile-installer:
- nuget-restore:
test_ios:
before_run:
- setup_test
after_run:
- _print_outputs
- _cleanup_output_dir
steps:
- path::./:
title: Step test - iOS
inputs:
- build_tool: msbuild
- project_type_whitelist: ios
- script:
title: Check output Env. variables - iOS
inputs:
- content: |-
#!/bin/bash
set -ex
if [[ ! -e $BITRISE_XCARCHIVE_PATH ]]; then exit 1; fi
if [[ ! -e $BITRISE_IPA_PATH ]]; then exit 1; fi
if [[ ! -e $BITRISE_DSYM_PATH ]]; then exit 1; fi
if [[ ! -e $BITRISE_APP_PATH ]]; then exit 1; fi
test_android_custom_options:
before_run:
- setup_test
after_run:
- _print_outputs
- _cleanup_output_dir
steps:
- path::./:
title: Step test - Android custom options
inputs:
- project_type_whitelist: android
- ios_build_command_custom_options: /nologo
- script:
title: Check output Env. variables - Android
inputs:
- content: |-
#!/bin/bash
set -ex
if [[ ! -e $BITRISE_APK_PATH ]]; then exit 1; fi
test_android_aab:
envs:
- SAMPLE_APP_BRANCH: android-app-bundle
after_run:
- setup_test
- utility_test_android_aab
- _print_outputs
- _cleanup_output_dir
utility_test_android_aab:
steps:
- path::./:
title: Step test - Android AAB
inputs:
- project_type_whitelist: android
- ios_build_command_custom_options: /nologo
- script:
title: Check output Env. variables - Android
inputs:
- content: |-
#!/bin/bash
set -ex
if [[ ! -e $BITRISE_AAB_PATH ]]; then exit 1; fi
_print_outputs:
steps:
- script:
title: Output test
is_always_run: true
inputs:
- content: |-
echo "BITRISE_APK_PATH: $BITRISE_APK_PATH"
echo "BITRISE_AAB_PATH: $BITRISE_AAB_PATH"
echo
echo "BITRISE_XCARCHIVE_PATH: $BITRISE_XCARCHIVE_PATH"
echo "BITRISE_IPA_PATH: $BITRISE_IPA_PATH"
echo "BITRISE_DSYM_PATH: $BITRISE_DSYM_PATH"
echo "BITRISE_APP_PATH: $BITRISE_APP_PATH"
echo
echo "BITRISE_TVOS_XCARCHIVE_PATH: $BITRISE_TVOS_XCARCHIVE_PATH"
echo "BITRISE_TVOS_IPA_PATH: $BITRISE_TVOS_IPA_PATH"
echo "BITRISE_TVOS_DSYM_PATH: $BITRISE_TVOS_DSYM_PATH"
echo "BITRISE_TVOS_APP_PATH: $BITRISE_TVOS_APP_PATH"
envman add --key BITRISE_APK_PATH --value ""
envman add --key BITRISE_XCARCHIVE_PATH --value ""
envman add --key BITRISE_IPA_PATH --value ""
envman add --key BITRISE_DSYM_PATH --value ""
envman add --key BITRISE_APP_PATH --value ""
envman add --key BITRISE_TVOS_XCARCHIVE_PATH --value ""
envman add --key BITRISE_TVOS_IPA_PATH --value ""
envman add --key BITRISE_TVOS_DSYM_PATH --value ""
envman add --key BITRISE_TVOS_APP_PATH --value ""
_cleanup_output_dir:
steps:
- script:
title: Cleanup output dirs
inputs:
- content: |-
set -ex
rm -rf ./Droid/bin ./Droid/obj
rm -rf ./iOS/bin ./iOS/obj
rm -rf ./Mac/bin ./Mac/obj
audit-this-step:
title: Audit the Step
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -ex
stepman audit --step-yml ./step.yml
dep-update:
title: Dep update
description: |
Used for updating bitrise dependencies with dep
steps:
- script:
title: Dependency update
inputs:
- content: |-
#!/bin/env bash
set -ex
go get -u -v github.com/golang/dep/cmd/dep
dep ensure -v
dep ensure -v -update