Permalink
Browse files

Merge pull request #90 from ksjogo/iostest

iOS Simulator testing
  • Loading branch information...
timburks committed Apr 20, 2017
2 parents 37427e4 + dc26e0e commit 978e1003e24bf7875a79d234171c65c09f54a14c
View
@@ -7,9 +7,25 @@ matrix:
- os: osx
language: objective-c
osx_image: xcode8.3
-before_install:
- - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./ubuntu.sh; fi
-before_script:
- - make
- - ./mininush tools/nuke install
-script: nuke test
+ - os: osx
+ language: objective-c
+ osx_image: xcode8.3
+ env:
+ - SIMULATOR=true
+
+before_install: |
+ if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
+ ./ubuntu.sh
+ fi
+before_script: |
+ if [[ ! $SIMULATOR ]]; then
+ make
+ ./mininush tools/nuke install
+ fi
+script: |
+ if [[ ! $SIMULATOR ]]; then
+ nuke test
+ else
+ xcodebuild -project Xcode/Nu.xcodeproj -list
+ xcodebuild test -project Xcode/Nu.xcodeproj -destination "platform=iOS Simulator,name=iPhone 7,OS=10.3" -scheme NuApp
+ fi
@@ -176,6 +176,7 @@
22EE2C0613A4731600895861 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 22EE2C0513A4731600895861 /* main.m */; };
22EE2C0A13A4731600895861 /* NuAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 22EE2C0913A4731600895861 /* NuAppDelegate.m */; };
43B5D4101D3668A600D1E1FD /* libNuTouch.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 43B5D4021D36686B00D1E1FD /* libNuTouch.a */; };
+ 43CBE43D1EA8B3580043AA84 /* NuAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 43CBE43C1EA8B3580043AA84 /* NuAppTests.m */; };
43DCFCB31D369D8200CB6E63 /* libffi.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 43DCFCB21D369D8200CB6E63 /* libffi.a */; };
43DCFCB91D37938100CB6E63 /* NSArray+Nu.m in Sources */ = {isa = PBXBuildFile; fileRef = 2217EC3F1CCDAED00082837B /* NSArray+Nu.m */; };
43DCFCBB1D37938100CB6E63 /* NSBundle+Nu.m in Sources */ = {isa = PBXBuildFile; fileRef = 2217EC301CCDAC600082837B /* NSBundle+Nu.m */; };
@@ -245,6 +246,13 @@
remoteGlobalIDString = DB13B1911849DF510010F42D;
remoteInfo = "libffi-Mac";
};
+ 43CBE43F1EA8B3580043AA84 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 22EE2BF313A4731600895861;
+ remoteInfo = NuApp;
+ };
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
@@ -422,6 +430,9 @@
32DBCF5E0370ADEE00C91783 /* Nu_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Nu_Prefix.pch; sourceTree = "<group>"; };
433CE5641D38EA4100EE7273 /* libffi.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = libffi.xcodeproj; path = ../libffi/libffi.xcodeproj; sourceTree = "<group>"; };
43B5D4021D36686B00D1E1FD /* libNuTouch.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libNuTouch.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ 43CBE43A1EA8B3580043AA84 /* NuAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = NuAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
+ 43CBE43C1EA8B3580043AA84 /* NuAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NuAppTests.m; sourceTree = "<group>"; };
+ 43CBE43E1EA8B3580043AA84 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
43DCFCB21D369D8200CB6E63 /* libffi.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libffi.a; path = "../libffi/build/Debug-iphoneos/libffi.a"; sourceTree = "<group>"; };
4F43427B1420476C00AC1BFD /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ../main/main.m; sourceTree = "<group>"; };
56E07743170B028400FF0A4B /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
@@ -456,6 +467,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 43CBE4371EA8B3580043AA84 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
8DC2EF560486A6940098B216 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
@@ -474,6 +492,7 @@
2283073111DDBE3100A5C690 /* nush */,
22EE2BF413A4731600895861 /* NuApp.app */,
43B5D4021D36686B00D1E1FD /* libNuTouch.a */,
+ 43CBE43A1EA8B3580043AA84 /* NuAppTests.xctest */,
);
name = Products;
sourceTree = "<group>";
@@ -714,6 +733,7 @@
0867D69AFE84028FC02AAC07 /* Nu.framework */,
22B3B50913B03B6600B3AB31 /* nush */,
22EE2BFF13A4731600895861 /* NuApp */,
+ 43CBE43B1EA8B3580043AA84 /* NuAppTests */,
);
name = Targets;
sourceTree = "<group>";
@@ -749,6 +769,15 @@
name = Products;
sourceTree = "<group>";
};
+ 43CBE43B1EA8B3580043AA84 /* NuAppTests */ = {
+ isa = PBXGroup;
+ children = (
+ 43CBE43C1EA8B3580043AA84 /* NuAppTests.m */,
+ 43CBE43E1EA8B3580043AA84 /* Info.plist */,
+ );
+ path = NuAppTests;
+ sourceTree = "<group>";
+ };
43DCFCB41D369D9400CB6E63 /* NuTouch */ = {
isa = PBXGroup;
children = (
@@ -861,6 +890,24 @@
productReference = 43B5D4021D36686B00D1E1FD /* libNuTouch.a */;
productType = "com.apple.product-type.library.static";
};
+ 43CBE4391EA8B3580043AA84 /* NuAppTests */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 43CBE4411EA8B3580043AA84 /* Build configuration list for PBXNativeTarget "NuAppTests" */;
+ buildPhases = (
+ 43CBE4361EA8B3580043AA84 /* Sources */,
+ 43CBE4371EA8B3580043AA84 /* Frameworks */,
+ 43CBE4381EA8B3580043AA84 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 43CBE4401EA8B3580043AA84 /* PBXTargetDependency */,
+ );
+ name = NuAppTests;
+ productName = NuAppTests;
+ productReference = 43CBE43A1EA8B3580043AA84 /* NuAppTests.xctest */;
+ productType = "com.apple.product-type.bundle.unit-test";
+ };
8DC2EF4F0486A6940098B216 /* Nu */ = {
isa = PBXNativeTarget;
buildConfigurationList = 1DEB91AD08733DA50010E9CD /* Build configuration list for PBXNativeTarget "Nu" */;
@@ -886,11 +933,16 @@
0867D690FE84028FC02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0720;
+ LastUpgradeCheck = 0830;
TargetAttributes = {
43B5D4011D36686B00D1E1FD = {
CreatedOnToolsVersion = 7.2.1;
};
+ 43CBE4391EA8B3580043AA84 = {
+ CreatedOnToolsVersion = 8.3.1;
+ ProvisioningStyle = Automatic;
+ TestTargetID = 22EE2BF313A4731600895861;
+ };
};
};
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Nu" */;
@@ -919,6 +971,7 @@
2283073011DDBE3100A5C690 /* nush */,
22EE2BF313A4731600895861 /* NuApp */,
43B5D4011D36686B00D1E1FD /* NuTouch */,
+ 43CBE4391EA8B3580043AA84 /* NuAppTests */,
);
};
/* End PBXProject section */
@@ -1013,6 +1066,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 43CBE4381EA8B3580043AA84 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
8DC2EF520486A6940098B216 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
@@ -1058,6 +1118,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 43CBE4361EA8B3580043AA84 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 43CBE43D1EA8B3580043AA84 /* NuAppTests.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
43DCFCB51D37934200CB6E63 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
@@ -1162,6 +1230,11 @@
target = 8DC2EF4F0486A6940098B216 /* Nu */;
targetProxy = 2283074211DDBEA300A5C690 /* PBXContainerItemProxy */;
};
+ 43CBE4401EA8B3580043AA84 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 22EE2BF313A4731600895861 /* NuApp */;
+ targetProxy = 43CBE43F1EA8B3580043AA84 /* PBXContainerItemProxy */;
+ };
/* End PBXTargetDependency section */
/* Begin PBXVariantGroup section */
@@ -1243,17 +1316,33 @@
1DEB91B208733DA50010E9CD /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_ENABLE_OBJC_GC = unsupported;
+ GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
SNOWLEOPARD,
DARWIN,
);
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = /usr/local/include;
ONLY_ACTIVE_ARCH = YES;
@@ -1268,15 +1357,31 @@
1DEB91B308733DA50010E9CD /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_ENABLE_OBJC_GC = unsupported;
+ GCC_NO_COMMON_BLOCKS = YES;
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREPROCESSOR_DEFINITIONS = (
SNOWLEOPARD,
DARWIN,
);
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES;
+ GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
HEADER_SEARCH_PATHS = /usr/local/include;
OTHER_LDFLAGS = (
@@ -1340,6 +1445,7 @@
CLANG_ENABLE_OBJC_ARC = NO;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
+ DEVELOPMENT_TEAM = "";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(DEVELOPER_FRAMEWORKS_DIR)\"",
@@ -1380,6 +1486,7 @@
CLANG_ENABLE_OBJC_ARC = NO;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = YES;
+ DEVELOPMENT_TEAM = "";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"\"$(DEVELOPER_FRAMEWORKS_DIR)\"",
@@ -1447,7 +1554,7 @@
../libffi/darwin_common/include,
../libffi/darwin_ios/include,
);
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = YES;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1485,7 +1592,7 @@
../libffi/darwin_common/include,
../libffi/darwin_ios/include,
);
- IPHONEOS_DEPLOYMENT_TARGET = 7.0;
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MTL_ENABLE_DEBUG_INFO = NO;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1495,6 +1602,75 @@
};
name = Release;
};
+ 43CBE4421EA8B3580043AA84 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ DEVELOPMENT_TEAM = "";
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ INFOPLIST_FILE = NuAppTests/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 10.3;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+ MTL_ENABLE_DEBUG_INFO = YES;
+ PRODUCT_BUNDLE_IDENTIFIER = nu.programming.NuAppTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = iphoneos;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NuApp.app/NuApp";
+ };
+ name = Debug;
+ };
+ 43CBE4431EA8B3580043AA84 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ BUNDLE_LOADER = "$(TEST_HOST)";
+ CLANG_ANALYZER_NONNULL = YES;
+ CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ DEVELOPMENT_TEAM = "";
+ ENABLE_NS_ASSERTIONS = NO;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ INFOPLIST_FILE = NuAppTests/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 10.3;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+ MTL_ENABLE_DEBUG_INFO = NO;
+ PRODUCT_BUNDLE_IDENTIFIER = nu.programming.NuAppTests;
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ SDKROOT = iphoneos;
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/NuApp.app/NuApp";
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@@ -1543,6 +1719,14 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
+ 43CBE4411EA8B3580043AA84 /* Build configuration list for PBXNativeTarget "NuAppTests" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 43CBE4421EA8B3580043AA84 /* Debug */,
+ 43CBE4431EA8B3580043AA84 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
/* End XCConfigurationList section */
};
rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
Oops, something went wrong.

0 comments on commit 978e100

Please sign in to comment.