Skip to content

Commit 54c5aa4

Browse files
authored
Get CircleCI running, add Xcode 12.4 Support (#217)
1 parent c4f97d7 commit 54c5aa4

File tree

2 files changed

+51
-1
lines changed

2 files changed

+51
-1
lines changed

.circleci/config.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ jobs:
3939
- checkout
4040
- restore_cache:
4141
key: *dependencies-cache-key
42+
# Some different versions are installed on the Xcode 10 server, so we need to re-install ruby gems.
43+
- run:
44+
name: Install Ruby dependencies
45+
command: bundle check || bundle install --jobs 4 --retry 3
46+
- run:
47+
name: Install Cocoapods dependencies
48+
command: |
49+
bundle exec pod install
50+
diff ./Podfile.lock ./Pods/Manifest.lock > /dev/null || pod_install
4251
- run: bundle exec fastlane lint
4352
test-xcode10:
4453
macos:
@@ -74,8 +83,31 @@ jobs:
7483
key: *dependencies-cache-key
7584
- run: instruments -s devices
7685
- run: xcodebuild -sdk -version
86+
# Some different versions are installed on the Xcode server, so we need to re-install ruby gems.
87+
- run:
88+
name: Install Ruby dependencies
89+
command: bundle check || bundle install --jobs 4 --retry 3
7790
- run: bundle exec fastlane test_carthage
7891
- run: FASTLANE_EXPLICIT_OPEN_SIMULATOR=2 bundle exec fastlane test_xcode11 --verbose
92+
test-xcode12:
93+
macos:
94+
xcode: "12.4.0"
95+
environment:
96+
LC_ALL: en_US.UTF-8
97+
LANG: en_US.UTF-8
98+
BUNDLE_PATH: vendor/bundle
99+
shell: /bin/bash --login -eo pipefail
100+
steps:
101+
- checkout
102+
- restore_cache:
103+
key: *dependencies-cache-key
104+
- run: instruments -s devices
105+
- run: xcodebuild -sdk -version
106+
# Some different versions are installed on the Xcode server, so we need to re-install ruby gems.
107+
- run:
108+
name: Install Ruby dependencies
109+
command: bundle check || bundle install --jobs 4 --retry 3
110+
- run: FASTLANE_EXPLICIT_OPEN_SIMULATOR=2 bundle exec fastlane test_xcode12 --verbose
79111
workflows:
80112
version: 2
81113
build-and-deploy:
@@ -90,4 +122,6 @@ workflows:
90122
- test-xcode11:
91123
requires:
92124
- dependencies
93-
125+
- test-xcode12:
126+
requires:
127+
- dependencies

fastlane/Fastfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,22 @@ platform :ios do
8181
swift_version: swift_version
8282
)
8383
end
84+
85+
desc "Runs all the tests for Xcode 12"
86+
lane :test_xcode12 do
87+
88+
swift_version = '5.0'
89+
90+
# iOS
91+
test_ios(
92+
sdk: 'iphonesimulator14.4',
93+
swift_version: swift_version,
94+
devices: [
95+
'iPhone 8 (14.4)',
96+
'iPhone 12 (14.4)'
97+
]
98+
)
99+
end
84100
end
85101

86102

0 commit comments

Comments
 (0)