Skip to content

Commit

Permalink
Swift 4.2 / Xcode 10 travis changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Dillard committed Sep 26, 2018
1 parent 497add1 commit 1ad1d8c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
@@ -1 +1 @@
2.3.0
2.3.1
6 changes: 3 additions & 3 deletions .travis.yml
@@ -1,14 +1,14 @@
language: objective-c
osx_image: xcode9
osx_image: xcode10
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
- WORKSPACE=MetovaTestKit.xcworkspace
- IOS_FRAMEWORK_SCHEME="MetovaTestKit"
- IOS_SDK=iphonesimulator11.0
- IOS_SDK=iphonesimulator12.0
matrix:
- DESTINATION="OS=11.0,name=iPhone X" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" POD_LINT="YES"
- DESTINATION="OS=12.0,name=iPhone X" SCHEME="$IOS_FRAMEWORK_SCHEME" SDK="$IOS_SDK" RUN_TESTS="YES" POD_LINT="YES"
before_install:
- bundle install --without=documentation
- bundle exec pod repo update
Expand Down
7 changes: 6 additions & 1 deletion MetovaTestKit.xcodeproj/project.pbxproj
Expand Up @@ -612,13 +612,16 @@
files = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-MetovaTestKit-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
Expand Down Expand Up @@ -849,6 +852,7 @@
4A3CFF0F1CDD5F37003EF6F0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ENABLE_BITCODE = YES;
INFOPLIST_FILE = MetovaTestKitTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = metova.MetovaTestKitTests;
Expand All @@ -860,6 +864,7 @@
4A3CFF101CDD5F37003EF6F0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ENABLE_BITCODE = YES;
INFOPLIST_FILE = MetovaTestKitTests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = metova.MetovaTestKitTests;
Expand Down
40 changes: 20 additions & 20 deletions MetovaTestKitTests/ExceptionTestingTests.swift
Expand Up @@ -40,8 +40,8 @@ class ExceptionTestingTests: MTKBaseTestCase {
MTKAssertNoException(message: "TEST MESSAGE") {
didReachEnd = false

let arr: NSArray = [0, 1, 3, 4, 5, 6, 7, 8, 9, 10]
arr.object(at: 3)
let array: NSArray = [0, 1, 3, 4, 5, 6, 7, 8, 9, 10]
array.object(at: 3)

didReachEnd = true
}
Expand All @@ -61,8 +61,8 @@ class ExceptionTestingTests: MTKBaseTestCase {
MTKAssertNoException {
didReachEnd = false

let arr: NSArray = [0, 1, 3, 4, 5, 6, 7, 8, 9, 10]
arr.object(at: 3)
let array: NSArray = [0, 1, 3, 4, 5, 6, 7, 8, 9, 10]
array.object(at: 3)

didReachEnd = true
}
Expand All @@ -87,8 +87,8 @@ class ExceptionTestingTests: MTKBaseTestCase {
MTKAssertNoException(message: message) {
didReachEnd = false

let arr: NSArray = []
arr.object(at: 3)
let array: NSArray = []
array.object(at: 3)

didReachEnd = true
}
Expand All @@ -114,8 +114,8 @@ class ExceptionTestingTests: MTKBaseTestCase {
MTKAssertNoException {
didReachEnd = false

let arr: NSArray = []
arr.object(at: 3)
let array: NSArray = []
array.object(at: 3)

didReachEnd = true
}
Expand All @@ -132,8 +132,8 @@ class ExceptionTestingTests: MTKBaseTestCase {
func testAssertNoExceptionReturnsNilWhenPassing() {

let exception = MTKAssertNoException {
let arr: NSArray = [0, 1, 3, 4, 5, 6, 7, 8, 9, 10]
arr.object(at: 3)
let array: NSArray = [0, 1, 3, 4, 5, 6, 7, 8, 9, 10]
array.object(at: 3)
}

XCTAssertNil(exception)
Expand All @@ -146,8 +146,8 @@ class ExceptionTestingTests: MTKBaseTestCase {
MTKAssertException(message: "TEST MESSAGE") {
didReachEnd = false

let arr = NSArray()
arr.object(at: 3)
let array = NSArray()
array.object(at: 3)

didReachEnd = true
}
Expand All @@ -167,8 +167,8 @@ class ExceptionTestingTests: MTKBaseTestCase {
MTKAssertException {
didReachEnd = false

let arr = NSArray()
arr.object(at: 3)
let array = NSArray()
array.object(at: 3)

didReachEnd = true
}
Expand All @@ -194,8 +194,8 @@ class ExceptionTestingTests: MTKBaseTestCase {

didReachEnd = false

let arr: NSArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
arr.object(at: 3)
let array: NSArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
array.object(at: 3)

didReachEnd = true
}
Expand All @@ -222,8 +222,8 @@ class ExceptionTestingTests: MTKBaseTestCase {

didReachEnd = false

let arr: NSArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
arr.object(at: 3)
let array: NSArray = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
array.object(at: 3)

didReachEnd = true
}
Expand All @@ -240,8 +240,8 @@ class ExceptionTestingTests: MTKBaseTestCase {
func testAssertExceptionCatchesCorrectException() {

let throwingBlock = {
let arr = NSArray()
arr.object(at: 3)
let array = NSArray()
array.object(at: 3)
}

guard let exception = MTKAssertException(testBlock: throwingBlock) else {
Expand Down
2 changes: 1 addition & 1 deletion Podfile.lock
Expand Up @@ -9,4 +9,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: d5607466d3d3e3deae872088ea7e172451978d1e

COCOAPODS: 1.2.1
COCOAPODS: 1.4.0

0 comments on commit 1ad1d8c

Please sign in to comment.