Skip to content

Commit

Permalink
Added a new test target for taking App Store screenshots and an assoc…
Browse files Browse the repository at this point in the history
…iated fastlane lane.
  • Loading branch information
daveverwer committed Nov 18, 2019
1 parent 173637f commit 2333878
Show file tree
Hide file tree
Showing 10 changed files with 572 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# fastlane snapshot
screenshots/
127 changes: 126 additions & 1 deletion TallestTowers.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
5519C171234E33440022E332 /* TowerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5519C170234E33440022E332 /* TowerTests.swift */; };
5519C17C234E33440022E332 /* TallestTowersUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5519C17B234E33440022E332 /* TallestTowersUITests.swift */; };
5519C18A234E35880022E332 /* Tower.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5519C189234E35880022E332 /* Tower.swift */; };
5535C79A2382FF7B00E65B03 /* TallestTowersScreenshots.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5535C7992382FF7B00E65B03 /* TallestTowersScreenshots.swift */; };
5535C7A22382FFD400E65B03 /* SnapshotHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5535C7A12382FFD400E65B03 /* SnapshotHelper.swift */; };
55CFADD6235F44390067DBB7 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 55CFADD5235F44380067DBB7 /* README.md */; };
55CFADD8235F860E0067DBB7 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 55CFADD7235F860E0067DBB7 /* LICENSE */; };
/* End PBXBuildFile section */
Expand All @@ -37,6 +39,13 @@
remoteGlobalIDString = 5519C155234E33420022E332;
remoteInfo = TallestTowers;
};
5535C79C2382FF7B00E65B03 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 5519C14E234E33420022E332 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 5519C155234E33420022E332;
remoteInfo = TallestTowers;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
Expand All @@ -60,6 +69,11 @@
552B707D236B5D9300ACC210 /* Pluginfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Pluginfile; sourceTree = "<group>"; };
552B707E236B5D9300ACC210 /* Appfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Appfile; sourceTree = "<group>"; };
552B707F236B5D9300ACC210 /* Fastfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Fastfile; sourceTree = "<group>"; };
5535C7972382FF7B00E65B03 /* TallestTowersScreenshots.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TallestTowersScreenshots.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
5535C7992382FF7B00E65B03 /* TallestTowersScreenshots.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TallestTowersScreenshots.swift; sourceTree = "<group>"; };
5535C79B2382FF7B00E65B03 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5535C7A12382FFD400E65B03 /* SnapshotHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SnapshotHelper.swift; sourceTree = "<group>"; };
5535C7A32383038C00E65B03 /* Snapfile */ = {isa = PBXFileReference; lastKnownFileType = text; path = Snapfile; sourceTree = "<group>"; };
55AE65672360A0D60064B1AB /* semaphore.yml */ = {isa = PBXFileReference; lastKnownFileType = text.yaml; path = semaphore.yml; sourceTree = "<group>"; };
55CFADD5235F44380067DBB7 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
55CFADD7235F860E0067DBB7 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
Expand Down Expand Up @@ -87,6 +101,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
5535C7942382FF7B00E65B03 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand Down Expand Up @@ -128,6 +149,7 @@
5519C158234E33420022E332 /* TallestTowers */,
5519C16F234E33440022E332 /* TallestTowersTests */,
5519C17A234E33440022E332 /* TallestTowersUITests */,
5535C7982382FF7B00E65B03 /* TallestTowersScreenshots */,
5519C157234E33420022E332 /* Products */,
);
sourceTree = "<group>";
Expand All @@ -138,6 +160,7 @@
5519C156234E33420022E332 /* TallestTowers.app */,
5519C16C234E33440022E332 /* TallestTowersTests.xctest */,
5519C177234E33440022E332 /* TallestTowersUITests.xctest */,
5535C7972382FF7B00E65B03 /* TallestTowersScreenshots.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -178,11 +201,22 @@
children = (
552B707E236B5D9300ACC210 /* Appfile */,
552B707F236B5D9300ACC210 /* Fastfile */,
5535C7A32383038C00E65B03 /* Snapfile */,
552B707D236B5D9300ACC210 /* Pluginfile */,
);
path = fastlane;
sourceTree = "<group>";
};
5535C7982382FF7B00E65B03 /* TallestTowersScreenshots */ = {
isa = PBXGroup;
children = (
5535C7A12382FFD400E65B03 /* SnapshotHelper.swift */,
5535C7992382FF7B00E65B03 /* TallestTowersScreenshots.swift */,
5535C79B2382FF7B00E65B03 /* Info.plist */,
);
path = TallestTowersScreenshots;
sourceTree = "<group>";
};
55AE65662360A0D60064B1AB /* .semaphore */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -247,13 +281,31 @@
productReference = 5519C177234E33440022E332 /* TallestTowersUITests.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
5535C7962382FF7B00E65B03 /* TallestTowersScreenshots */ = {
isa = PBXNativeTarget;
buildConfigurationList = 5535C7A02382FF7B00E65B03 /* Build configuration list for PBXNativeTarget "TallestTowersScreenshots" */;
buildPhases = (
5535C7932382FF7B00E65B03 /* Sources */,
5535C7942382FF7B00E65B03 /* Frameworks */,
5535C7952382FF7B00E65B03 /* Resources */,
);
buildRules = (
);
dependencies = (
5535C79D2382FF7B00E65B03 /* PBXTargetDependency */,
);
name = TallestTowersScreenshots;
productName = TallestTowersScreenshots;
productReference = 5535C7972382FF7B00E65B03 /* TallestTowersScreenshots.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
5519C14E234E33420022E332 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1110;
LastSwiftUpdateCheck = 1120;
LastUpgradeCheck = 1110;
ORGANIZATIONNAME = "Semaphore CI";
TargetAttributes = {
Expand All @@ -268,6 +320,10 @@
CreatedOnToolsVersion = 11.1;
TestTargetID = 5519C155234E33420022E332;
};
5535C7962382FF7B00E65B03 = {
CreatedOnToolsVersion = 11.2.1;
TestTargetID = 5519C155234E33420022E332;
};
};
};
buildConfigurationList = 5519C151234E33420022E332 /* Build configuration list for PBXProject "TallestTowers" */;
Expand All @@ -286,6 +342,7 @@
5519C155234E33420022E332 /* TallestTowers */,
5519C16B234E33440022E332 /* TallestTowersTests */,
5519C176234E33440022E332 /* TallestTowersUITests */,
5535C7962382FF7B00E65B03 /* TallestTowersScreenshots */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -316,6 +373,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
5535C7952382FF7B00E65B03 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand Down Expand Up @@ -349,6 +413,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
5535C7932382FF7B00E65B03 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
5535C79A2382FF7B00E65B03 /* TallestTowersScreenshots.swift in Sources */,
5535C7A22382FFD400E65B03 /* SnapshotHelper.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
Expand All @@ -362,6 +435,11 @@
target = 5519C155234E33420022E332 /* TallestTowers */;
targetProxy = 5519C178234E33440022E332 /* PBXContainerItemProxy */;
};
5535C79D2382FF7B00E65B03 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 5519C155234E33420022E332 /* TallestTowers */;
targetProxy = 5535C79C2382FF7B00E65B03 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
Expand Down Expand Up @@ -608,6 +686,44 @@
};
name = Release;
};
5535C79E2382FF7B00E65B03 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = TallestTowersScreenshots/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.semaphoreci.TallestTowersScreenshots;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = TallestTowers;
};
name = Debug;
};
5535C79F2382FF7B00E65B03 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = TallestTowersScreenshots/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.2;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.semaphoreci.TallestTowersScreenshots;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = TallestTowers;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand Down Expand Up @@ -647,6 +763,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
5535C7A02382FF7B00E65B03 /* Build configuration list for PBXNativeTarget "TallestTowersScreenshots" */ = {
isa = XCConfigurationList;
buildConfigurations = (
5535C79E2382FF7B00E65B03 /* Debug */,
5535C79F2382FF7B00E65B03 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 5519C14E234E33420022E332 /* Project object */;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1120"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5535C7962382FF7B00E65B03"
BuildableName = "TallestTowersScreenshots.xctest"
BlueprintName = "TallestTowersScreenshots"
ReferencedContainer = "container:TallestTowers.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5535C7962382FF7B00E65B03"
BuildableName = "TallestTowersScreenshots.xctest"
BlueprintName = "TallestTowersScreenshots"
ReferencedContainer = "container:TallestTowers.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "5535C7962382FF7B00E65B03"
BuildableName = "TallestTowersScreenshots.xctest"
BlueprintName = "TallestTowersScreenshots"
ReferencedContainer = "container:TallestTowers.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
22 changes: 22 additions & 0 deletions TallestTowersScreenshots/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Loading

0 comments on commit 2333878

Please sign in to comment.