Skip to content

Commit 2d36d97

Browse files
authored
Updated CI config to match the other iOS repos (#639)
* Update CI config * Update Fastifle
1 parent 9d2a943 commit 2d36d97

File tree

4 files changed

+43
-49
lines changed

4 files changed

+43
-49
lines changed

.circleci/config.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ executors:
88
LANG: en_US.UTF-8
99
BUNDLE_JOBS: 4
1010
BUNDLE_RETRY: 3
11+
BUNDLE_PATH: vendor/bundle
1112
HOMEBREW_LOGS: ~/homebrew-logs
1213
HOMEBREW_TEMP: ~/homebrew-temp
1314
HOMEBREW_NO_AUTO_UPDATE: 1
14-
SCHEME: Lock
15-
DEVICE: iPhone 11
15+
HOMEBREW_NO_INSTALL_CLEANUP: 1
16+
FL_OUTPUT_DIR: output
1617
FASTLANE_EXPLICIT_OPEN_SIMULATOR: 2
1718

1819
commands:
@@ -50,21 +51,18 @@ commands:
5051
- lock-swift-carthage-{ checksum "Cartfile.resolved" }}-<< parameters.xcode >>
5152
- lock-swift-carthage-{ checksum "Cartfile.resolved" }}
5253
- lock-swift-carthage-
53-
- run: |
54-
bundle exec fastlane ios bootstrap
54+
- run: bundle exec fastlane ios bootstrap
5555
- save_cache:
5656
key: lock-swift-carthage-{ checksum "Cartfile.resolved" }}-<< parameters.xcode >>
5757
paths:
5858
- Carthage/Build
5959

6060
test:
6161
steps:
62-
- run: |
63-
bundle exec fastlane ios ci
62+
- run: bundle exec fastlane ios ci
6463
pod-lint:
6564
steps:
66-
- run: |
67-
bundle exec fastlane ios pod_lint
65+
- run: bundle exec fastlane ios pod_lint
6866
send-coverage-report:
6967
steps:
7068
- run: bash <(curl -s https://codecov.io/bash) -J 'Lock'

Gemfile.lock

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@ GEM
99
tzinfo (~> 1.1)
1010
addressable (2.7.0)
1111
public_suffix (>= 2.0.2, < 5.0)
12-
algoliasearch (1.27.3)
12+
algoliasearch (1.27.4)
1313
httpclient (~> 2.8, >= 2.8.3)
1414
json (>= 1.5.1)
1515
atomos (0.1.3)
1616
aws-eventstream (1.1.0)
17-
aws-partitions (1.341.0)
18-
aws-sdk-core (3.103.0)
17+
aws-partitions (1.381.0)
18+
aws-sdk-core (3.109.1)
1919
aws-eventstream (~> 1, >= 1.0.2)
2020
aws-partitions (~> 1, >= 1.239.0)
2121
aws-sigv4 (~> 1.1)
2222
jmespath (~> 1.0)
23-
aws-sdk-kms (1.36.0)
24-
aws-sdk-core (~> 3, >= 3.99.0)
23+
aws-sdk-kms (1.39.0)
24+
aws-sdk-core (~> 3, >= 3.109.0)
2525
aws-sigv4 (~> 1.1)
26-
aws-sdk-s3 (1.74.0)
27-
aws-sdk-core (~> 3, >= 3.102.1)
26+
aws-sdk-s3 (1.83.0)
27+
aws-sdk-core (~> 3, >= 3.109.0)
2828
aws-sdk-kms (~> 1)
2929
aws-sigv4 (~> 1.1)
30-
aws-sigv4 (1.2.1)
30+
aws-sigv4 (1.2.2)
3131
aws-eventstream (~> 1, >= 1.0.2)
32-
babosa (1.0.3)
32+
babosa (1.0.4)
3333
claide (1.0.3)
3434
cocoapods (1.9.3)
3535
activesupport (>= 4.0.2, < 5)
@@ -59,7 +59,7 @@ GEM
5959
netrc (~> 0.11)
6060
typhoeus (~> 1.0)
6161
cocoapods-deintegrate (1.0.4)
62-
cocoapods-downloader (1.3.0)
62+
cocoapods-downloader (1.4.0)
6363
cocoapods-plugins (1.0.0)
6464
nap
6565
cocoapods-search (1.0.0)
@@ -72,7 +72,7 @@ GEM
7272
colored2 (3.1.2)
7373
commander-fastlane (4.4.6)
7474
highline (~> 1.7.2)
75-
concurrent-ruby (1.1.6)
75+
concurrent-ruby (1.1.7)
7676
declarative (0.0.20)
7777
declarative-option (0.1.0)
7878
digest-crc (0.6.1)
@@ -84,16 +84,16 @@ GEM
8484
escape (0.0.4)
8585
ethon (0.12.0)
8686
ffi (>= 1.3.0)
87-
excon (0.75.0)
88-
faraday (0.17.3)
87+
excon (0.76.0)
88+
faraday (1.0.1)
8989
multipart-post (>= 1.2, < 3)
90-
faraday-cookie_jar (0.0.6)
91-
faraday (>= 0.7.4)
90+
faraday-cookie_jar (0.0.7)
91+
faraday (>= 0.8.0)
9292
http-cookie (~> 1.0.0)
93-
faraday_middleware (0.14.0)
94-
faraday (>= 0.7.4, < 1.0)
95-
fastimage (2.1.7)
96-
fastlane (2.152.0)
93+
faraday_middleware (1.0.0)
94+
faraday (~> 1.0)
95+
fastimage (2.2.0)
96+
fastlane (2.162.0)
9797
CFPropertyList (>= 2.3, < 4.0.0)
9898
addressable (>= 2.3, < 3.0.0)
9999
aws-sdk-s3 (~> 1.0)
@@ -104,9 +104,9 @@ GEM
104104
dotenv (>= 2.1.1, < 3.0.0)
105105
emoji_regex (>= 0.1, < 4.0)
106106
excon (>= 0.71.0, < 1.0.0)
107-
faraday (>= 0.17, < 1.0)
107+
faraday (~> 1.0)
108108
faraday-cookie_jar (~> 0.0.6)
109-
faraday_middleware (>= 0.13.1, < 2.0)
109+
faraday_middleware (~> 1.0)
110110
fastimage (>= 2.1.0, < 3.0.0)
111111
gh_inspector (>= 1.1.2, < 2.0.0)
112112
google-api-client (>= 0.37.0, < 0.39.0)
@@ -149,14 +149,14 @@ GEM
149149
google-cloud-env (1.3.3)
150150
faraday (>= 0.17.3, < 2.0)
151151
google-cloud-errors (1.0.1)
152-
google-cloud-storage (1.26.2)
152+
google-cloud-storage (1.29.1)
153153
addressable (~> 2.5)
154154
digest-crc (~> 0.4)
155155
google-api-client (~> 0.33)
156156
google-cloud-core (~> 1.2)
157157
googleauth (~> 0.9)
158158
mini_mime (~> 1.0)
159-
googleauth (0.13.0)
159+
googleauth (0.14.0)
160160
faraday (>= 0.17.3, < 2.0)
161161
jwt (>= 1.4, < 3.0)
162162
memoist (~> 0.16)
@@ -171,21 +171,21 @@ GEM
171171
concurrent-ruby (~> 1.0)
172172
jmespath (1.4.0)
173173
json (2.3.1)
174-
jwt (2.2.1)
174+
jwt (2.2.2)
175175
memoist (0.16.2)
176176
mini_magick (4.10.1)
177177
mini_mime (1.0.2)
178-
minitest (5.14.1)
178+
minitest (5.14.2)
179179
molinillo (0.6.6)
180180
multi_json (1.15.0)
181181
multipart-post (2.0.0)
182-
nanaimo (0.2.6)
182+
nanaimo (0.3.0)
183183
nap (1.1.0)
184184
naturally (2.2.0)
185185
netrc (0.11.0)
186-
os (1.1.0)
186+
os (1.1.1)
187187
plist (3.5.0)
188-
public_suffix (4.0.5)
188+
public_suffix (4.0.6)
189189
rake (13.0.1)
190190
representable (3.0.4)
191191
declarative (< 0.1.0)
@@ -211,7 +211,7 @@ GEM
211211
unicode-display_width (~> 1.1, >= 1.1.1)
212212
thread_safe (0.3.6)
213213
tty-cursor (0.7.1)
214-
tty-screen (0.8.0)
214+
tty-screen (0.8.1)
215215
tty-spinner (0.9.3)
216216
tty-cursor (~> 0.7)
217217
typhoeus (1.4.0)
@@ -224,12 +224,12 @@ GEM
224224
unf_ext (0.0.7.7)
225225
unicode-display_width (1.7.0)
226226
word_wrap (1.0.0)
227-
xcodeproj (1.17.0)
227+
xcodeproj (1.19.0)
228228
CFPropertyList (>= 2.3.3, < 4.0)
229229
atomos (~> 0.1.3)
230230
claide (>= 1.0.2, < 2.0)
231231
colored2 (~> 3.1)
232-
nanaimo (~> 0.2.6)
232+
nanaimo (~> 0.3.0)
233233
xcpretty (0.3.0)
234234
rouge (~> 2.0.7)
235235
xcpretty-travis-formatter (1.0.0)

fastlane/Fastfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ default_platform :ios
55

66
platform :ios do
77

8+
before_all do
9+
setup_circle_ci
10+
end
11+
812
desc "Installs dependencies using Carthage"
913
lane :dependencies do |options|
1014
action = options[:action]
@@ -41,14 +45,8 @@ platform :ios do
4145
lane :ci do
4246
i18n(silent: true) # Generate base strings file
4347
# ensure_git_status_clean # Until we add dangerfile check if there are changes this way
44-
scheme = ENV["SCHEME"]
45-
UI.user_error!("You must supply a valid scheme in 'SCHEME' env variable") if scheme.nil?
46-
options = {
47-
scheme: scheme,
48-
device: ENV["DEVICE"]
49-
}
50-
test(options)
5148
lint
49+
test
5250
end
5351

5452
desc "Cocoapods library lint"

fastlane/Scanfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
scheme "Lock"
2-
device "iPhone 8"
2+
device "iPhone 11"
33

44
clean true
5-
6-
output_types "html"

0 commit comments

Comments
 (0)