forked from duckduckgo/iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitrise.yml
More file actions
163 lines (155 loc) · 4.9 KB
/
bitrise.yml
File metadata and controls
163 lines (155 loc) · 4.9 KB
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
---
format_version: '6'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- push_branch: "*"
workflow: Primary
- pull_request_target_branch: "*"
workflow: Primary
workflows:
AtbUITests:
steps:
- activate-ssh-key@4.0:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4.2: {}
- swiftlint@0:
inputs:
- linting_path: "$BITRISE_SOURCE_DIR"
- certificate-and-profile-installer@1.10: {}
- xcode-test@2.5:
deps:
brew:
- name: swiftlint
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- should_build_before_test: 'no'
- should_retry_test_on_fail: 'yes'
- simulator_device: iPhone 8
- scheme: AtbUITests
title: Atb UI Tests
is_always_run: true
- deploy-to-bitrise-io@1.13: {}
FingerprintingUITests:
steps:
- activate-ssh-key@4.0:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4.0: {}
- swiftlint@0:
inputs:
- linting_path: "$BITRISE_SOURCE_DIR"
- certificate-and-profile-installer@1.10: {}
- script@1:
inputs:
- content: |
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
# From https://support.bitrise.io/hc/en-us/articles/360019059918?input_string=occasional+failures+running+ui+tests
# If we still get intermittent failures due to "failed to boot simulator" errors then we should open a support ticket
npm install -g ios-sim
ios-sim start --devicetypeid "com.apple.CoreSimulator.SimDeviceType.iPhone-8, 14.4"
sleep 60
- xcode-test@2.4:
deps:
brew:
- name: swiftlint
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- should_build_before_test: 'no'
- should_retry_test_on_fail: 'yes'
- simulator_device: iPhone 8
- headless_mode: 'no'
- scheme: FingerprintingUITests
title: FingerprintingUITests
is_always_run: true
- deploy-to-bitrise-io@1.10: {}
Primary:
steps:
- activate-ssh-key@4.0:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4.0: {}
- swiftlint@0:
inputs:
- linting_path: "$BITRISE_SOURCE_DIR"
- npm@1.1.4:
inputs:
- command: install
- npm@1.1.4:
inputs:
- command: test
- certificate-and-profile-installer@1.10: {}
- xcode-test@4.0:
deps:
brew:
- name: swiftlint
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- should_build_before_test: 'no'
- test_repetition_mode: retry_on_failure
- simulator_device: iPhone 8
- scheme: "$BITRISE_SCHEME"
- deploy-to-bitrise-io@1.10: {}
Release:
steps:
- activate-ssh-key@4.0:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- script@1:
inputs:
- content: "#!/usr/bin/env bash\n# fail if any commands fails\nset -e\n# debug
log\nset -x\n\n# See https://stackoverflow.com/a/18558871/73479\nbeginsWith()
{ case $2 in \"$1\"*) true;; *) false;; esac; }\n\n# Check we are on a
release branch\nif beginsWith \"release/\" $BITRISE_GIT_BRANCH; then\n
\ echo \"Working on a release branch \U0001F44D\"\nelif beginsWith \"hotfix/\"
$BITRISE_GIT_BRANCH; then\n echo \"Working on a hotfix branch \U0001F44D\"\nelse
\n echo \"\U0001F44E Not a release or hotfix branch\"\n exit 1\nfi"
title: Assert Release Branch
- git-clone@4.0: {}
- script@1:
inputs:
- content: |
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
curl $BITRISEIO_FONTS_URL -o $BITRISE_SOURCE_DIR/fonts.tar
ls -la $BITRISE_SOURCE_DIR/fonts.tar
tar -xf $BITRISE_SOURCE_DIR/fonts.tar -C $BITRISE_SOURCE_DIR/fonts/licensed
find . | grep otf | xargs ls -la
title: Install Fonts
- swiftlint@0:
inputs:
- linting_path: "$BITRISE_SOURCE_DIR"
- ios-auto-provision-appstoreconnect@2:
inputs:
- distribution_type: app-store
- certificate-and-profile-installer@1.10: {}
- fastlane@3:
inputs:
- connection: api_key
- lane: release
- deploy-to-bitrise-io@1.10: {}
envs:
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: app-store
- opts:
is_expand: false
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: '60'
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: DuckDuckGo.xcodeproj
- opts:
is_expand: false
BITRISE_SCHEME: DuckDuckGo
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: ad-hoc
meta:
bitrise.io:
machine_type: elite_xl