Skip to content

Commit

Permalink
Get CircleCI running, add Xcode 12.4 Support (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickm01 authored Jul 23, 2021
1 parent c4f97d7 commit 54c5aa4
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ jobs:
- checkout
- restore_cache:
key: *dependencies-cache-key
# Some different versions are installed on the Xcode 10 server, so we need to re-install ruby gems.
- run:
name: Install Ruby dependencies
command: bundle check || bundle install --jobs 4 --retry 3
- run:
name: Install Cocoapods dependencies
command: |
bundle exec pod install
diff ./Podfile.lock ./Pods/Manifest.lock > /dev/null || pod_install
- run: bundle exec fastlane lint
test-xcode10:
macos:
Expand Down Expand Up @@ -74,8 +83,31 @@ jobs:
key: *dependencies-cache-key
- run: instruments -s devices
- run: xcodebuild -sdk -version
# Some different versions are installed on the Xcode server, so we need to re-install ruby gems.
- run:
name: Install Ruby dependencies
command: bundle check || bundle install --jobs 4 --retry 3
- run: bundle exec fastlane test_carthage
- run: FASTLANE_EXPLICIT_OPEN_SIMULATOR=2 bundle exec fastlane test_xcode11 --verbose
test-xcode12:
macos:
xcode: "12.4.0"
environment:
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
BUNDLE_PATH: vendor/bundle
shell: /bin/bash --login -eo pipefail
steps:
- checkout
- restore_cache:
key: *dependencies-cache-key
- run: instruments -s devices
- run: xcodebuild -sdk -version
# Some different versions are installed on the Xcode server, so we need to re-install ruby gems.
- run:
name: Install Ruby dependencies
command: bundle check || bundle install --jobs 4 --retry 3
- run: FASTLANE_EXPLICIT_OPEN_SIMULATOR=2 bundle exec fastlane test_xcode12 --verbose
workflows:
version: 2
build-and-deploy:
Expand All @@ -90,4 +122,6 @@ workflows:
- test-xcode11:
requires:
- dependencies

- test-xcode12:
requires:
- dependencies
16 changes: 16 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,22 @@ platform :ios do
swift_version: swift_version
)
end

desc "Runs all the tests for Xcode 12"
lane :test_xcode12 do

swift_version = '5.0'

# iOS
test_ios(
sdk: 'iphonesimulator14.4',
swift_version: swift_version,
devices: [
'iPhone 8 (14.4)',
'iPhone 12 (14.4)'
]
)
end
end


Expand Down

0 comments on commit 54c5aa4

Please sign in to comment.