diff --git a/.travis.yml b/.travis.yml index bfec1ffe..b46ee7b3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,7 @@ +os: osx language: objective-c -osx_image: xcode9 -before_install: - - brew update -script: make ci +osx_image: + - xcode10.3 + - xcode11.4 +script: + - set -o pipefail && xcodebuild test -project Sparkle.xcodeproj -scheme Distribution -derivedDataPath build -enableCodeCoverage YES | xcpretty diff --git a/Tests/SUCodeSigningVerifierTest.m b/Tests/SUCodeSigningVerifierTest.m index f52dae7b..8f68185c 100644 --- a/Tests/SUCodeSigningVerifierTest.m +++ b/Tests/SUCodeSigningVerifierTest.m @@ -12,7 +12,12 @@ #import "SUAdHocCodeSigning.h" #import "SUFileManager.h" +#if defined(__MAC_10_15) +// In macOS 10.15 and later, pre-installed apps are installed under the System folder +#define CALCULATOR_PATH @"/System/Applications/Calculator.app" +#else #define CALCULATOR_PATH @"/Applications/Calculator.app" +#endif @interface SUCodeSigningVerifierTest : XCTestCase