From 54c5aa413dba4564d4b1e7c371a57156170373bf Mon Sep 17 00:00:00 2001 From: Nick McConnell Date: Fri, 23 Jul 2021 10:38:02 -0400 Subject: [PATCH] Get CircleCI running, add Xcode 12.4 Support (#217) --- .circleci/config.yml | 36 +++++++++++++++++++++++++++++++++++- fastlane/Fastfile | 16 ++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index b7f263d..5e85b71 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: @@ -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: @@ -90,4 +122,6 @@ workflows: - test-xcode11: requires: - dependencies - \ No newline at end of file + - test-xcode12: + requires: + - dependencies diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 2d9ecd5..ae9e67e 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -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