diff --git a/.travis.yml b/.travis.yml index a3c2760..3481799 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,17 @@ # Travis CI config for AssetResizer language: swift -osx_image: xcode8.3 +osx_image: xcode10.1 xcode_project: AssetResizer.xcodeproj env: global: - - PROJECT=AssetResizer.xcodeproj - SCHEME=AssetResizer - - SDK=macosx10.12 - - DESTINATION="arch=x86_64" script: - set -o pipefail - xcodebuild -version - xcodebuild -showsdks - - xcodebuild -project "$PROJECT" -scheme "$SCHEME" -sdk "$SDK" -destination "$DESTINATION" -configuration Debug ONLY_ACTIVE_ARCH=NO test | xcpretty -c; + - xcodebuild -scheme "$SCHEME" test | xcpretty -c; after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/Tests/AssetResizerTests/AssetResizerTests.swift b/Tests/AssetResizerTests/AssetResizerTests.swift index c1980dc..22da727 100644 --- a/Tests/AssetResizerTests/AssetResizerTests.swift +++ b/Tests/AssetResizerTests/AssetResizerTests.swift @@ -7,4 +7,8 @@ import XCTest @testable import AssetResizer -final class AssetResizerTests: XCTestCase {} +final class AssetResizerTests: XCTestCase { + + static let identifier = "net.jeanetienne.AssetResizerTests" + +} diff --git a/Tests/AssetResizerTests/Tools/URL+TempFolder.swift b/Tests/AssetResizerTests/Tools/URL+TempFolder.swift index d9b2052..e19c22e 100644 --- a/Tests/AssetResizerTests/Tools/URL+TempFolder.swift +++ b/Tests/AssetResizerTests/Tools/URL+TempFolder.swift @@ -9,7 +9,7 @@ extension URL { static var cacheFolder: URL = { () -> URL in let folderPath = FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask)[0] - return folderPath.appendingPathComponent(Bundle.tests.bundleIdentifier!) + return folderPath.appendingPathComponent(AssetResizerTests.identifier) }() }