From f2c43cbe725ed6fd9be559773a03368342a2d19b Mon Sep 17 00:00:00 2001 From: Felix Mau Date: Fri, 11 Oct 2019 17:09:24 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20::=20update=20project=20fo?= =?UTF-8?q?r=20Xcode=2011=20and=20iOS=2013?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 5 +---- ...adientActivityIndicatorView+AnimateIsHiddenTestCase.swift | 2 +- Scripts/test.sh | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7dd3c08..f4213bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,11 +6,8 @@ # - http://www.mokacoding.com/blog/travis-ci-ios-testing/ # -osx_image: xcode10.2 +osx_image: xcode11 language: swift -podfile: Example/Podfile -before_install: -- pod install --repo-update --project-directory=Example script: - ./Scripts/swift-format.sh - ./Scripts/swift-lint.sh diff --git a/Example/Tests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift b/Example/Tests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift index 2806bd4..8224c4b 100644 --- a/Example/Tests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift +++ b/Example/Tests/Views/GradientActivityIndicatorView+AnimateIsHiddenTestCase.swift @@ -24,7 +24,7 @@ class GradientActivityIndicatorViewAnimateIsHiddenTestCase: XCTestCase { // In order for UIView animations to be executed correctly, the corresponding view has to be attached to a visible window. // Therefore we're gonna use the current key-window, add our testing view here in `setUp()` and remove it later in `tearDown()`. - window = UIApplication.shared.keyWindow + window = UIApplication.shared.windows.first { $0.isKeyWindow } gradientActivityIndicatorView = GradientActivityIndicatorView() window.addSubview(gradientActivityIndicatorView) diff --git a/Scripts/test.sh b/Scripts/test.sh index bbc0791..877767a 100755 --- a/Scripts/test.sh +++ b/Scripts/test.sh @@ -16,5 +16,5 @@ xcodebuild \ -workspace GradientLoadingBar.xcworkspace \ -scheme GradientLoadingBar-Example \ -sdk iphonesimulator \ - -destination 'platform=iOS Simulator,name=iPhone XR,OS=12.2' \ + -destination 'platform=iOS Simulator,name=iPhone 11 Pro,OS=13.0' \ build test | xcpretty && exit ${PIPESTATUS[0]}