forked from mapbox/mapbox-navigation-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
220 lines (193 loc) · 6.62 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
217
218
219
220
version: 2
workflows:
version: 2
default:
jobs:
- xcode-10
- xcode-9
- xcode-10-bench
- xcode-10-cocoapods-install
- xcode-10-cocoapods-update
- 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: |
if (brew outdated | grep carthage > /dev/null); then brew upgrade carthage; fi
echo "foo" > ~/.mapbox
- &prepare-iphone6s-plus-ios-11
run:
name: Prepare iPhone 6s Plus iOS 11
command: xcrun instruments -w "iPhone 6 Plus (11.4) [" || true
- &prepare-iphone6s-plus-ios-12
run:
name: Prepare iPhone 6s Plus iOS 12
command: xcrun instruments -w "iPhone 6 Plus (12.1) [" || true
- &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 Debug --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 clean build test
- &build-test-MapboxCoreNavigation-ios-12
run:
name: Build and Test MapboxCoreNavigation
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=12.1,name=iPhone 6 Plus' -project MapboxNavigation.xcodeproj -scheme MapboxCoreNavigation clean build test -enableCodeCoverage "YES"
- &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 clean build test
- &build-test-MapboxNavigation-ios-12
run:
name: Build and Test MapboxNavigation
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=12.1,name=iPhone 6 Plus' -project MapboxNavigation.xcodeproj -scheme MapboxNavigation clean build test -enableCodeCoverage "YES"
- &build-test-Bench-ios-12
run:
name: Build and Test Bench
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=12.1,name=iPhone 6 Plus' -project MapboxNavigation.xcodeproj -scheme Bench clean build test
- &build-Example
run:
name: Build Example
command: |
xcodebuild -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=11.4,name=iPhone 6 Plus' -project MapboxNavigation.xcodeproj -scheme Example clean build | xcpretty
- &cocoapods-integration-install
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
- &cocoapods-integration-update
run:
name: CocoaPods integration test
command: |
cd MapboxCoreNavigationTests/CocoaPodsTest/PodInstall
pod update --repo-update
xcodebuild -workspace PodInstall.xcworkspace/ -scheme PodInstall -destination 'platform=iOS Simulator,name=iPhone 6 Plus' clean build | xcpretty
- &publish-codecov
run:
name: Publish Code Coverage data
command: bash <(curl -s https://codecov.io/bash)
jobs:
xcode-10:
macos:
xcode: "10.1.0"
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- *prepare
- *prepare-iphone6s-plus-ios-12
- *restore-cache
- *install-dependencies
- *build-test-MapboxCoreNavigation-ios-12
- *build-test-MapboxNavigation-ios-12
- *publish-codecov
- *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
- *save-cache
xcode-10-bench:
macos:
xcode: "10.1.0"
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- *prepare
- *restore-cache
- *install-dependencies
- *build-test-Bench-ios-12
- *save-cache
xcode-10-cocoapods-install:
macos:
xcode: "10.1.0"
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- *restore-cache-podmaster
- *restore-cache-cocoapods
- *cocoapods-integration-install
- *save-cache-cocoapods
- *save-cache-podmaster
xcode-10-cocoapods-update:
macos:
xcode: "10.1.0"
environment:
HOMEBREW_NO_AUTO_UPDATE: 1
steps:
- checkout
- *restore-cache-podmaster
- *restore-cache-cocoapods
- *cocoapods-integration-update
- *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
- *save-cache