forked from maplibre/maplibre-navigation-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
216 lines (188 loc) · 7.08 KB
/
circle.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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
version: 2
workflows:
version: 2
default:
jobs:
- xcode-10
- xcode-9
- xcode-10-cocoapods-integration
- xcode-9-examples
step-library:
- &restore-cache
restore_cache:
keys:
- carthage-cache-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cartfile.resolved" }}
- carthage-cache-v1- # used if checksum fails
- &restore-cache-cocoapods
restore_cache:
keys:
- cp-cache-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "MapboxCoreNavigationTests/CocoaPodsTest/PodInstall/Podfile.lock" }}
- cp-cache-v1
- &restore-cache-podmaster
restore_cache:
keys:
- podmaster-cache
- &save-cache
save_cache:
key: carthage-cache-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "Cartfile.resolved" }}
paths:
- Carthage
- &save-cache-cocoapods
save_cache:
key: cp-cache-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "MapboxCoreNavigationTests/CocoaPodsTest/PodInstall/Podfile.lock" }}
paths:
- MapboxCoreNavigationTests/CocoaPodsTest/PodInstall/Pods
- &save-cache-podmaster
save_cache:
key: podmaster-cache
paths:
- "~/.cocoapods/repos/master"
- &prepare
run:
name: Prepare
command: |
git submodule sync
brew install carthage
echo "foo" > ~/.mapbox
- &prepare-iphone6s-plus-ios-11
run:
name: Prepare iPhone 6s Plus iOS 11
command: xcrun instruments -w "iPhone 6s Plus (11.4) [" || true
- &prepare-iphone6s-plus-ios-12
run:
name: Prepare iPhone 6s Plus iOS 12
command: xcrun instruments -w "iPhone 6s Plus (12.0) [" || true
- &reset-simulators
run:
name: Reset simulators
command: |
bundle install
SNAPSHOT_FORCE_DELETE=1 bundle exec fastlane snapshot reset_simulators
- &verify-missing-localizable-strings
run:
name: Verify missing localizable strings
command: |
./scripts/convert_string_files.sh
git diff --exit-code -- */*/*.lproj
- &install-dependencies
run:
name: Install Dependencies
command: carthage bootstrap --platform ios --cache-builds --configuration Release --no-use-binaries
- &build-test-MapboxCoreNavigation-ios-11
run:
name: Build and Test MapboxCoreNavigation
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=11.4,name=iPhone 6 Plus' -project MapboxNavigation.xcodeproj -scheme MapboxCoreNavigation -resultBundlePath MapboxCoreNavigationResults clean build test | tee MapboxCoreNavigation-xcodebuild.log | xcpretty
- &build-test-MapboxCoreNavigation-ios-12
run:
name: Build and Test MapboxCoreNavigation
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=12.0,name=iPhone 6 Plus' -project MapboxNavigation.xcodeproj -scheme MapboxCoreNavigation -resultBundlePath MapboxCoreNavigationResults clean build test | tee MapboxCoreNavigation-xcodebuild.log | xcpretty
- &build-test-MapboxNavigation-ios-11
run:
name: Build and Test MapboxNavigation
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=11.4,name=iPhone 6 Plus' -project MapboxNavigation.xcodeproj -scheme MapboxNavigation -resultBundlePath MapboxNavigationResults clean build test | tee MapboxNavigation-xcodebuild.log | xcpretty
- &build-test-MapboxNavigation-ios-12
run:
name: Build and Test MapboxNavigation
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=12.0,name=iPhone 6 Plus' -project MapboxNavigation.xcodeproj -scheme MapboxNavigation -resultBundlePath MapboxNavigationResults clean build test | tee MapboxNavigation-xcodebuild.log | xcpretty
- &build-Example-Obj-C
run:
name: Build Example-Objective-C
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=11.4,name=iPhone 6 Plus' -project MapboxNavigation.xcodeproj -scheme Example-Objective-C clean build | xcpretty
- &build-Example-Swift
run:
name: Build Example-Swift
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=11.4,name=iPhone 6 Plus' -project MapboxNavigation.xcodeproj -scheme Example-Swift clean build | xcpretty
- &cocoapods-integration-test
run:
name: CocoaPods integration test
command: |
cd MapboxCoreNavigationTests/CocoaPodsTest/PodInstall
pod install --repo-update
xcodebuild -workspace PodInstall.xcworkspace/ -scheme PodInstall -destination 'platform=iOS Simulator,name=iPhone 6 Plus' clean build | xcpretty
- &print-MapboxNavigation-xcodebuild-log
run:
name: Print MapboxNavigation-xcodebuild.log
when: on_fail
command: cat MapboxNavigation-xcodebuild.log
- &print-MapboxCoreNavigation-xcodebuild-log
run:
name: Print MapboxCoreNavigation-xcodebuild.log
when: on_fail
command: cat MapboxCoreNavigation-xcodebuild.log
- &store-MapboxNavigationResults-artifacts
store_artifacts:
path: MapboxNavigationResults
- &store-MapboxCoreNavigationResults-artifacts
store_artifacts:
path: MapboxCoreNavigationResults
jobs:
xcode-10:
macos:
xcode: "10.0.0"
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- *prepare
- *reset-simulators
- *prepare-iphone6s-plus-ios-12
- *restore-cache
- *install-dependencies
- *build-test-MapboxCoreNavigation-ios-12
- *build-test-MapboxNavigation-ios-12
- *print-MapboxNavigation-xcodebuild-log
- *print-MapboxCoreNavigation-xcodebuild-log
- *store-MapboxNavigationResults-artifacts
- *store-MapboxCoreNavigationResults-artifacts
- *save-cache
xcode-9:
macos:
xcode: "9.4.1"
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- *prepare
- *prepare-iphone6s-plus-ios-11
- *restore-cache
- *install-dependencies
- *verify-missing-localizable-strings
- *build-test-MapboxCoreNavigation-ios-11
- *build-test-MapboxNavigation-ios-11
- *print-MapboxNavigation-xcodebuild-log
- *print-MapboxCoreNavigation-xcodebuild-log
- *store-MapboxNavigationResults-artifacts
- *store-MapboxCoreNavigationResults-artifacts
- *save-cache
xcode-10-cocoapods-integration:
macos:
xcode: "10.0.0"
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- *restore-cache-podmaster
- *restore-cache-cocoapods
- *cocoapods-integration-test
- *save-cache-cocoapods
- *save-cache-podmaster
xcode-9-examples:
macos:
xcode: "9.4.1"
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- *prepare
- *prepare-iphone6s-plus-ios-11
- *restore-cache
- *install-dependencies
- *build-Example-Obj-C
- *build-Example-Swift
- *save-cache