Switch legacy tests to iOS 12/13/14 (#770)

This commit is contained in:
davidme-stripe 2022-02-17 12:44:33 -08:00 committed by GitHub
parent cca7f152c7
commit c912676643
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 24 deletions

View File

@ -120,6 +120,7 @@ jobs:
installation_spm_swift \
installation_carthage \
paymentsheet_tests \
legacy_tests_14 \
preflight \
ci_builds \
export_builds \
@ -229,16 +230,7 @@ jobs:
- prep_bundler_carthage
- run: "bundle exec fastlane check_docs"
test-legacy-11:
executor: xcode-122-mac-executor
steps:
- prep_installtests_122
- run: sudo bundle exec xcversion simulators --install="iOS 11.4" --no-progress || true
- run: "bundle exec fastlane legacy_tests_11"
- archive_logs
test-legacy-12:
legacy-tests-12:
executor: mac-executor
steps:
@ -249,14 +241,25 @@ jobs:
- run: "bundle exec fastlane legacy_tests_12"
- archive_logs
legacy-tests-13:
executor: mac-executor
steps:
- prep_environment
- prep_clone
- prep_bundler_carthage
- run: sudo bundle exec xcversion simulators --install="iOS 13.7" --no-progress || true
- run: "bundle exec fastlane legacy_tests_13"
- archive_logs
workflows:
version: 2.1
build-and-test:
jobs:
- size-report
- main-tests
- test-legacy-11
- test-legacy-12
- legacy-tests-12
- legacy-tests-13
- xcode-122-install-tests
e2e-only:
triggers:

View File

@ -80,7 +80,7 @@
UIFont *iOS9SystemFont = [UIFont systemFontOfSize:18];;
textField.font = iOS9SystemFont;
XCTAssertEqualWithAccuracy(textField.intrinsicContentSize.height, 44, 0.1);
XCTAssertEqualWithAccuracy(textField.intrinsicContentSize.width, 259, 0.1);
XCTAssertEqualWithAccuracy(textField.intrinsicContentSize.width, 259, 1.0);
textField.font = [UIFont fontWithName:@"Avenir" size:44];
if (@available(iOS 13.0, *)) {

View File

@ -138,17 +138,6 @@ platform :ios do
end
end
lane :legacy_tests_11 do
Dir.chdir("..") do
sh("./ci_scripts/test.rb --scheme 'StripeiOS' --device 'iPhone 6' --version 11.4 --skip-snapshot-tests")
sh("./ci_scripts/test.rb --scheme 'StripeCameraCore' --device 'iPhone 6' --version 11.4 --skip-snapshot-tests")
sh("./ci_scripts/test.rb --scheme 'StripeCore' --device 'iPhone 6' --version 11.4 --skip-snapshot-tests")
sh("./ci_scripts/test.rb --scheme 'StripeUICore' --device 'iPhone 6' --version 11.4 --skip-snapshot-tests")
sh("./ci_scripts/test.rb --scheme 'StripeApplePay' --device 'iPhone 6' --version 11.4 --skip-snapshot-tests")
sh("./ci_scripts/test.rb --scheme 'StripeCardScan' --device 'iPhone 6' --version 11.4 --skip-snapshot-tests")
end
end
lane :legacy_tests_12 do
Dir.chdir("..") do
sh("./ci_scripts/test.rb --scheme 'StripeiOS' --device 'iPhone 6' --version 12.4 --skip-snapshot-tests --retry-on-failure")
@ -160,6 +149,29 @@ platform :ios do
end
end
lane :legacy_tests_13 do
Dir.chdir("..") do
sh("./ci_scripts/test.rb --scheme 'StripeiOS' --device 'iPhone 8' --version 13.7 --skip-snapshot-tests --retry-on-failure")
sh("./ci_scripts/test.rb --scheme 'StripeCameraCore' --device 'iPhone 8' --version 13.7 --skip-snapshot-tests --retry-on-failure")
sh("./ci_scripts/test.rb --scheme 'StripeCore' --device 'iPhone 8' --version 13.7 --skip-snapshot-tests --retry-on-failure")
sh("./ci_scripts/test.rb --scheme 'StripeUICore' --device 'iPhone 8' --version 13.7 --skip-snapshot-tests --retry-on-failure")
sh("./ci_scripts/test.rb --scheme 'StripeApplePay' --device 'iPhone 8' --version 13.7 --skip-snapshot-tests --retry-on-failure")
sh("./ci_scripts/test.rb --scheme 'StripeCardScan' --device 'iPhone 8' --version 13.7 --skip-snapshot-tests --retry-on-failure")
end
end
lane :legacy_tests_14 do
Dir.chdir("..") do
sh("./ci_scripts/test.rb --scheme 'StripeiOS' --device 'iPhone 8' --version 14.5 --skip-snapshot-tests --retry-on-failure")
sh("./ci_scripts/test.rb --scheme 'StripeCameraCore' --device 'iPhone 8' --version 14.5 --skip-snapshot-tests --retry-on-failure")
sh("./ci_scripts/test.rb --scheme 'StripeCore' --device 'iPhone 8' --version 14.5 --skip-snapshot-tests --retry-on-failure")
sh("./ci_scripts/test.rb --scheme 'StripeUICore' --device 'iPhone 8' --version 14.5 --skip-snapshot-tests --retry-on-failure")
sh("./ci_scripts/test.rb --scheme 'StripeApplePay' --device 'iPhone 8' --version 14.5 --skip-snapshot-tests --retry-on-failure")
sh("./ci_scripts/test.rb --scheme 'StripeCardScan' --device 'iPhone 8' --version 14.5 --skip-snapshot-tests --retry-on-failure")
end
end
lane :e2e_only do
Dir.chdir("..") do
sh("./ci_scripts/test.rb --scheme 'StripeiOS' --device '#{DEFAULT_TEST_DEVICE}' --version #{DEFAULT_TEST_VERSION} --only-test 'StripeiOS Tests/STPE2ETest' --retry-on-failure")