-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
238 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
# Xcode version announcments can be found here: https://discuss.circleci.com/c/announcements/ | ||
# Each post contains a full image manifest, including iOS runtimes, devices, CocoaPods version, etc. | ||
# NOTE: When updaing Xcode check the manifest for compatible chruby versions. | ||
anchors: | ||
- &latest-xcode "14.1.0" | ||
- &latest-ios "16.1" | ||
- &latest-xcode "14.3.1" | ||
- &latest-ios "16.4" | ||
- &min-ios "15.5" | ||
- &requres-string "test << matrix.lib >> iOS 15.5" # Keep this version up to date | ||
- &chruby "3.1.2" | ||
- &device "iPhone 13" | ||
- &requres-string "test << matrix.lib >> iOS 15.5" # Keep this min version up to date | ||
- &device "iPhone SE (3rd generation)" | ||
- &invalid "" | ||
|
||
executors: | ||
|
@@ -31,55 +29,45 @@ jobs: | |
ios: | ||
type: string | ||
default: *latest-ios | ||
chruby: | ||
type: string | ||
default: *chruby | ||
device: | ||
type: string | ||
default: *device | ||
macos: | ||
xcode: << parameters.xcode >> | ||
resource_class: macos.x86.medium.gen2 | ||
working_directory: ~/SalesforceMobileSDK-iOS | ||
shell: /bin/bash --login -eo pipefail | ||
environment: | ||
DEVICE: << parameters.device >> | ||
IOS_VERSION: << parameters.ios >> | ||
BASH_ENV: ~/.bashrc | ||
FASTLANE_SKIP_UPDATE_CHECK: "true" | ||
CHRUBY_VER: << parameters.chruby >> | ||
LIB: << parameters.lib >> | ||
NIGHTLY_TEST: << parameters.nightly-test >> | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
keys: | ||
- v8-gems-{{ checksum ".circleci/Gemfile.lock" }} | ||
- v8-gems- | ||
- v1-gem-cahce-{{ checksum ".circleci/Gemfile.lock" }} | ||
- v1-gem-cahce | ||
- run: | ||
name: Install Dependencies | ||
command: | | ||
npm install [email protected] | ||
./install.sh | ||
./build/pre-build | ||
chruby ${CHRUBY_VER} | ||
cd .circleci | ||
bundle check || sudo bundle install | ||
sudo bundle update | ||
bundle check || sudo bundle install --path vendor/bundle | ||
- save_cache: | ||
key: v8-gems-{{ checksum ".circleci/Gemfile.lock" }} | ||
key: v1-gem-cahce{{ checksum ".circleci/Gemfile.lock" }} | ||
paths: | ||
- /Users/distiller/.gem/ruby/<< parameters.chruby >> | ||
- vendor/bundle | ||
- run: | ||
name: Run Tests | ||
command: | | ||
chruby ${CHRUBY_VER} | ||
cd .circleci | ||
bundle exec fastlane PR lib:<< parameters.lib >> | ||
- run: | ||
name: Danger Lib | ||
command: | | ||
chruby ${CHRUBY_VER} | ||
danger --dangerfile=.circleci/Dangerfile-Lib.rb --danger_id="${LIB}" --verbose | ||
background: true | ||
when: always | ||
|
@@ -100,9 +88,6 @@ parameters: | |
ios: | ||
type: string | ||
default: *invalid | ||
chruby: | ||
type: string | ||
default: *chruby | ||
device: | ||
type: string | ||
default: *device | ||
|
@@ -116,6 +101,7 @@ workflows: | |
- equal: [ "webhook", << pipeline.trigger_source >> ] | ||
jobs: | ||
- run-tests: | ||
context: iOS Unit Tests | ||
matrix: | ||
parameters: | ||
lib: ["SalesforceSDKCommon", "SalesforceAnalytics", "SalesforceSDKCore", "SmartStore", "MobileSync"] | ||
|
@@ -134,13 +120,15 @@ workflows: | |
jobs: | ||
- run-tests: | ||
name: test << matrix.lib >> iOS << matrix.ios >> | ||
context: iOS Unit Tests | ||
matrix: | ||
parameters: | ||
lib: ["SalesforceSDKCommon", "SalesforceAnalytics", "SalesforceSDKCore", "SmartStore", "MobileSync"] | ||
nightly-test: [true] | ||
ios: [*min-ios] | ||
- run-tests: | ||
name: test << matrix.lib >> iOS << matrix.ios >> | ||
context: iOS Unit Tests | ||
matrix: | ||
parameters: | ||
lib: ["SalesforceSDKCommon", "SalesforceAnalytics", "SalesforceSDKCore", "SmartStore", "MobileSync"] | ||
|
@@ -160,11 +148,11 @@ workflows: | |
jobs: | ||
- run-tests: | ||
name: test << matrix.lib >> iOS << matrix.ios >> | ||
context: iOS Unit Tests | ||
matrix: | ||
parameters: | ||
xcode: [<< pipeline.parameters.xcode >>] | ||
ios: [<< pipeline.parameters.ios >>] | ||
chruby: [<< pipeline.parameters.chruby >>] | ||
device: [<< pipeline.parameters.device >>] | ||
lib: ["SalesforceSDKCommon", "SalesforceAnalytics", "SalesforceSDKCore", "SmartStore", "MobileSync"] | ||
nightly-test: [true] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
CURRENT_PROJECT_VERSION = 11.0.0 | ||
CURRENT_PROJECT_VERSION = 11.1.0 |
Oops, something went wrong.