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]}