From e3d8d14c8a9dd9cf6d6a2a7fe5528ccf1c47514f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-E=CC=81tienne?= Date: Sun, 10 Feb 2019 13:52:32 +1100 Subject: [PATCH 1/2] Fixing Unit Tests --- Tests/AssetResizerTests/AssetResizerTests.swift | 6 +++++- Tests/AssetResizerTests/Tools/URL+TempFolder.swift | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) 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) }() } From 26401bf452384f07ea72f92cf46b30425ae12ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-E=CC=81tienne?= Date: Sun, 10 Feb 2019 13:52:44 +1100 Subject: [PATCH 2/2] Up to date Travis setup --- .travis.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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)