Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Upgrade Travis to Xcode 7 image #2238

Merged
merged 3 commits into from
Sep 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ matrix:
osx_image: xcode6.4
env: FLAVOR=osx BUILDTYPE=Debug
- os: osx
osx_image: xcode6.4
osx_image: xcode7
env: FLAVOR=ios BUILDTYPE=Release
- os: linux
env: FLAVOR=android ANDROID_ABI=arm-v7 BUILDTYPE=Release
Expand Down
9 changes: 6 additions & 3 deletions scripts/ios/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ set -e
set -o pipefail
set -u

xctool \
xcodebuild \
-project ./test/ios/ios-tests.xcodeproj \
-scheme 'Mapbox GL Tests' \
-sdk iphonesimulator8.4 \
test
-sdk iphonesimulator \
-destination 'platform=iOS Simulator,name=iPhone 6,OS=latest' \
-destination 'platform=iOS Simulator,name=iPad 2,OS=latest' \
test \
| xcpretty
6 changes: 3 additions & 3 deletions test/ios/App-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.mapbox.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand All @@ -28,6 +28,8 @@
<string>pk.eyJ1IjoianVzdGluIiwiYSI6Ik9RX3RRQzAifQ.dmOg_BAp1ywuDZMM7YsXRg</string>
<key>MGLMapboxMetricsEnabledSettingShownInApp</key>
<true/>
<key>NSLocationAlwaysUsageDescription</key>
<string>Strictly for testing purposes, promise!</string>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
Expand All @@ -40,8 +42,6 @@
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>NSLocationAlwaysUsageDescription</key>
<string>Strictly for testing purposes, promise!</string>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
Expand Down
2 changes: 1 addition & 1 deletion test/ios/Bundle-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.mapbox.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
Expand Down
2 changes: 1 addition & 1 deletion test/ios/KIF
Submodule KIF updated 60 files
+1 −1 .travis.yml
+1 −1 Additions/CGGeometry-KIFAdditions.h
+2 −2 Additions/NSException-KIFAdditions.m
+0 −14 Additions/SenTestCase-KIFAdditions.h
+0 −33 Additions/SenTestCase-KIFAdditions.m
+5 −2 Additions/UIApplication-KIFAdditions.h
+20 −1 Additions/UIApplication-KIFAdditions.m
+5 −67 Additions/UIEvent+KIFAdditions.m
+20 −6 Additions/UITouch-KIFAdditions.m
+22 −0 Additions/UIView-Debugging.h
+207 −0 Additions/UIView-Debugging.m
+0 −10 Additions/UIView-KIFAdditions.h
+100 −207 Additions/UIView-KIFAdditions.m
+9 −2 Additions/XCTestCase-KIFAdditions.m
+11 −0 Classes/IOHIDEvent+KIF.h
+188 −0 Classes/IOHIDEvent+KIF.m
+0 −1 Classes/KIF-Prefix.pch
+0 −4 Classes/KIF.h
+10 −11 Classes/KIFSystemTestActor.m
+13 −0 Classes/KIFTestActor.h
+31 −8 Classes/KIFTestActor.m
+1 −11 Classes/KIFTestCase.h
+0 −44 Classes/KIFTestCase.m
+0 −10 Classes/KIFTestStepValidation.h
+53 −2 Classes/KIFUITestActor.h
+115 −34 Classes/KIFUITestActor.m
+3 −1 Classes/UIAutomationHelper.h
+21 −8 Classes/UIAutomationHelper.m
+15 −0 IdentifierTests/KIFUITestActor-IdentifierTests.h
+18 −0 IdentifierTests/KIFUITestActor-IdentifierTests.m
+36 −0 KIF Tests/AccessibilityIdentifierTests.m
+32 −0 KIF Tests/BackgroundTests.m
+108 −0 KIF Tests/GestureTests.m
+1 −1 KIF Tests/KIF Tests-Info.plist
+0 −1 KIF Tests/KIF Tests-Prefix.pch
+3 −0 KIF Tests/ModalViewTests.m
+7 −3 KIF Tests/MultiFingerTests.m
+1 −1 KIF Tests/SpecificControlTests.m
+5 −8 KIF Tests/SystemAlertTests.m
+27 −25 KIF Tests/SystemTests.m
+29 −9 KIF Tests/TableViewTests.m
+37 −1 KIF Tests/TappingTests.m
+8 −0 KIF Tests/TypingTests.m
+ KIF XCTests-Prefix.gcda
+18 −33 KIF.podspec
+405 −482 KIF.xcodeproj/project.pbxproj
+13 −1 KIF.xcodeproj/xcshareddata/xcschemes/KIF Documentation.xcscheme
+31 −1 KIF.xcodeproj/xcshareddata/xcschemes/KIF.xcscheme
+28 −17 KIF.xcodeproj/xcshareddata/xcschemes/KIFFramework.xcscheme
+26 −0 KIFFramework/Info.plist
+42 −0 KIFFramework/KIF.h
+9 −5 README.md
+33 −0 Test Host/BackgroundViewController.m
+11 −0 Test Host/GestureViewController.m
+5 −0 Test Host/SystemAlertViewController.m
+28 −0 Test Host/TableViewController.m
+11 −2 Test Host/TapViewController.m
+1 −1 Test Host/Test Host-Info.plist
+9 −2 Test Host/TestSuiteViewController.m
+351 −347 Test Host/en.lproj/MainStoryboard.storyboard
4 changes: 2 additions & 2 deletions test/ios/MapViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ - (void)testDirectionSet {
270,
@"setting direction should take effect");

[tester waitForTimeInterval:1];
[tester waitForTimeInterval:2];

XCTAssertEqual(tester.compass.alpha,
1,
Expand Down Expand Up @@ -89,7 +89,7 @@ - (void)testDirectionReset {

[tester.mapView resetNorth];

[tester waitForTimeInterval:1];
[tester waitForTimeInterval:2];

XCTAssertEqual(tester.mapView.direction,
0,
Expand Down
64 changes: 22 additions & 42 deletions test/ios/ios-tests.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
DDBD0143196DC3AE0033959E /* PBXContainerItemProxy */ = {
DA3BDF011BA2326400553BD2 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = DDBD013A196DC3AE0033959E /* KIF.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = EABD46AA1857A0C700A5F081;
remoteInfo = KIF;
remoteGlobalIDString = 9CC9673B1AD4B1B600576D13;
remoteInfo = KIFFramework;
};
DDBD0145196DC3AE0033959E /* PBXContainerItemProxy */ = {
DDBD0143196DC3AE0033959E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = DDBD013A196DC3AE0033959E /* KIF.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = EB72047C1680DDAD00278DA2;
remoteInfo = "KIF-OCUnit";
remoteGlobalIDString = EABD46AA1857A0C700A5F081;
remoteInfo = KIF;
};
DDBD0147196DC3AE0033959E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
Expand All @@ -69,13 +69,6 @@
remoteGlobalIDString = EABD46CD1857A0F300A5F081;
remoteInfo = "KIF Tests";
};
DDBD014B196DC3AE0033959E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = DDBD013A196DC3AE0033959E /* KIF.xcodeproj */;
proxyType = 2;
remoteGlobalIDString = EB60ECEB177F8DB3005A041A;
remoteInfo = "KIF Tests-OCUnit";
};
DDBD0160196DC3D70033959E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = DD04331B196DB9BC00E6F39D /* Project object */;
Expand Down Expand Up @@ -327,10 +320,9 @@
isa = PBXGroup;
children = (
DDBD0144196DC3AE0033959E /* libKIF.a */,
DDBD0146196DC3AE0033959E /* libKIF-OCUnit.a */,
DDBD0148196DC3AE0033959E /* Test Host.app */,
DDBD014A196DC3AE0033959E /* KIF Tests - XCTest.xctest */,
DDBD014C196DC3AE0033959E /* KIF Tests-OCUnit.octest */,
DA3BDF021BA2326400553BD2 /* KIF.framework */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -396,7 +388,7 @@
isa = PBXProject;
attributes = {
CLASSPREFIX = MGLT;
LastUpgradeCheck = 0620;
LastUpgradeCheck = 0700;
ORGANIZATIONNAME = Mapbox;
TargetAttributes = {
DDBD0151196DC3D70033959E = {
Expand Down Expand Up @@ -430,18 +422,18 @@
/* End PBXProject section */

/* Begin PBXReferenceProxy section */
DDBD0144196DC3AE0033959E /* libKIF.a */ = {
DA3BDF021BA2326400553BD2 /* KIF.framework */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = libKIF.a;
remoteRef = DDBD0143196DC3AE0033959E /* PBXContainerItemProxy */;
fileType = wrapper.framework;
path = KIF.framework;
remoteRef = DA3BDF011BA2326400553BD2 /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
DDBD0146196DC3AE0033959E /* libKIF-OCUnit.a */ = {
DDBD0144196DC3AE0033959E /* libKIF.a */ = {
isa = PBXReferenceProxy;
fileType = archive.ar;
path = "libKIF-OCUnit.a";
remoteRef = DDBD0145196DC3AE0033959E /* PBXContainerItemProxy */;
path = libKIF.a;
remoteRef = DDBD0143196DC3AE0033959E /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
DDBD0148196DC3AE0033959E /* Test Host.app */ = {
Expand All @@ -458,13 +450,6 @@
remoteRef = DDBD0149196DC3AE0033959E /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
DDBD014C196DC3AE0033959E /* KIF Tests-OCUnit.octest */ = {
isa = PBXReferenceProxy;
fileType = wrapper.cfbundle;
path = "KIF Tests-OCUnit.octest";
remoteRef = DDBD014B196DC3AE0033959E /* PBXContainerItemProxy */;
sourceTree = BUILT_PRODUCTS_DIR;
};
/* End PBXReferenceProxy section */

/* Begin PBXResourcesBuildPhase section */
Expand Down Expand Up @@ -547,6 +532,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
COPY_PHASE_STRIP = NO;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
Expand Down Expand Up @@ -618,6 +604,7 @@
../../build/ios/pkg/static,
);
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "com.mapbox.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
WRAPPER_EXTENSION = app;
Expand All @@ -641,6 +628,7 @@
../../build/ios/pkg/static,
);
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = "com.mapbox.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
TARGETED_DEVICE_FAMILY = "1,2";
WRAPPER_EXTENSION = app;
Expand All @@ -651,12 +639,7 @@
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Mapbox GL Tests.app/Mapbox GL Tests";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
"$(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks",
);
FRAMEWORK_SEARCH_PATHS = "";
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
Expand All @@ -680,6 +663,7 @@
XCTest,
"-ObjC",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.mapbox.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
Expand All @@ -690,12 +674,7 @@
isa = XCBuildConfiguration;
buildSettings = {
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/Mapbox GL Tests.app/Mapbox GL Tests";
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
"$(DEVELOPER_FRAMEWORKS_DIR)",
"$(DEVELOPER_DIR)/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks",
);
FRAMEWORK_SEARCH_PATHS = "";
GCC_PREPROCESSOR_DEFINITIONS = "KIF_XCTEST=1";
HEADER_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -715,6 +694,7 @@
XCTest,
"-ObjC",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.mapbox.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
TEST_HOST = "$(BUNDLE_LOADER)";
WRAPPER_EXTENSION = xctest;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0620"
LastUpgradeVersion = "0700"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down