diff --git a/.travis.yml b/.travis.yml index 4f23225..148794a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,5 @@ language: objective-c -env: SWIFT_VERSION=3.0 -osx_image: xcode8.0 -xcode_project: KRProgressHUD.xcodeproj -xcode_scheme: KRProgressHUD -xcode_sdk: iphonesimulator +osx_image: xcode8 +script: + - xcodebuild clean test -project KRProgressHUD.xcodeproj -scheme KRProgressHUD -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 6,OS=9.0' + diff --git a/KRProgressHUD.xcodeproj/project.pbxproj b/KRProgressHUD.xcodeproj/project.pbxproj index 8f787f4..037d3f2 100644 --- a/KRProgressHUD.xcodeproj/project.pbxproj +++ b/KRProgressHUD.xcodeproj/project.pbxproj @@ -289,7 +289,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = jp.mond.krimpedance.KRProgressHUDTests; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 2.3; + SWIFT_VERSION = 3.0; TEST_HOST = ""; }; name = Debug; @@ -303,7 +303,7 @@ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = jp.mond.krimpedance.KRProgressHUDTests; PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_VERSION = 2.3; + SWIFT_VERSION = 3.0; TEST_HOST = ""; }; name = Release; @@ -353,7 +353,7 @@ ONLY_ACTIVE_ARCH = YES; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 2.3; + SWIFT_VERSION = 3.0; TARGETED_DEVICE_FAMILY = "1,2"; VERSIONING_SYSTEM = "apple-generic"; VERSION_INFO_PREFIX = ""; @@ -398,6 +398,7 @@ MTL_ENABLE_DEBUG_INFO = NO; SDKROOT = iphoneos; SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + SWIFT_VERSION = 3.0; TARGETED_DEVICE_FAMILY = "1,2"; VALIDATE_PRODUCT = YES; VERSIONING_SYSTEM = "apple-generic"; diff --git a/KRProgressHUDTests/KRProgressHUDTests.swift b/KRProgressHUDTests/KRProgressHUDTests.swift index 308f24f..e572be0 100644 --- a/KRProgressHUDTests/KRProgressHUDTests.swift +++ b/KRProgressHUDTests/KRProgressHUDTests.swift @@ -27,7 +27,7 @@ class KRProgressHUDTests: XCTestCase { func testPerformanceExample() { // This is an example of a performance test case. - self.measureBlock { + self.measure { // Put the code you want to measure the time of here. } }