Skip to content
Open
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
20 changes: 12 additions & 8 deletions BitriseTest.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,10 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development: Ben Boral (L5Y7PBM38G)";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_ASSET_PATHS = "\"BitriseTest/Preview Content\"";
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 72SA8V3WYL;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = BitriseTest/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
Expand All @@ -429,7 +430,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.bitrise.test.BitriseTest;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
PROVISIONING_PROFILE_SPECIFIER = "Ben Boral - Demo Apps 2021";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -440,9 +441,10 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_IDENTITY = "Apple Development: Ben Boral (L5Y7PBM38G)";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_ASSET_PATHS = "\"BitriseTest/Preview Content\"";
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 72SA8V3WYL;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = BitriseTest/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
Expand All @@ -452,7 +454,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.bitrise.test.BitriseTest;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
PROVISIONING_PROFILE_SPECIFIER = "Ben Boral - Demo Apps 2021";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -510,8 +512,9 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 72SA8V3WYL;
INFOPLIST_FILE = BitriseTestUITests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -520,7 +523,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.bitrise.test.BitriseTestUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
PROVISIONING_PROFILE_SPECIFIER = "Ben Boral - Demo Apps 2021";
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -532,8 +535,9 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
DEVELOPMENT_TEAM = 72SA8V3WYL;
INFOPLIST_FILE = BitriseTestUITests/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand All @@ -542,7 +546,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.bitrise.test.BitriseTestUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
PROVISIONING_PROFILE_SPECIFIER = "Ben Boral - Demo Apps 2021";
"PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down
99 changes: 99 additions & 0 deletions BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A1F9B10225C380F200E21DE4"
BuildableName = "BitriseTest.app"
BlueprintName = "BitriseTest"
ReferencedContainer = "container:BitriseTest.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
systemAttachmentLifetime = "keepAlways">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A1F9B11325C380F500E21DE4"
BuildableName = "BitriseTestTests.xctest"
BlueprintName = "BitriseTestTests"
ReferencedContainer = "container:BitriseTest.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A1F9B11E25C380F500E21DE4"
BuildableName = "BitriseTestUITests.xctest"
BlueprintName = "BitriseTestUITests"
ReferencedContainer = "container:BitriseTest.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">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A1F9B10225C380F200E21DE4"
BuildableName = "BitriseTest.app"
BlueprintName = "BitriseTest"
ReferencedContainer = "container:BitriseTest.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A1F9B10225C380F200E21DE4"
BuildableName = "BitriseTest.app"
BlueprintName = "BitriseTest"
ReferencedContainer = "container:BitriseTest.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
4 changes: 4 additions & 0 deletions BitriseTestTests/BitriseTestTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ class BitriseTestTests: XCTestCase {
// Put the code you want to measure the time of here.
}
}

func testExampleFailing() throws {
XCTAssertEqual(2, 3)
}

}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Simple iOS Project
Working bitrise.yml included in the root of the project

bitrise.yml builds iOS .ipa and runs tests
sasa
72 changes: 33 additions & 39 deletions bitrise.yml
Original file line number Diff line number Diff line change
@@ -1,68 +1,62 @@
---
format_version: '8'
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
deploy:
description: |
The workflow tests, builds and deploys the app using *Deploy to bitrise.io* step.

For testing the *retry_on_failure* test repetition mode is enabled.

Next steps:
- Set up [Connecting to an Apple service with API key](https://devcenter.bitrise.io/en/accounts/connecting-to-services/connecting-to-an-apple-service-with-api-key.html##).
- Or further customise code signing following our [iOS code signing](https://devcenter.bitrise.io/en/code-signing/ios-code-signing.html) guide.
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4: {}
- activate-ssh-key@4: {}
- git-clone@6: {}
- cache-pull@2: {}
- certificate-and-profile-installer@1: {}
- recreate-user-schemes@1:
- xcode-test@4:
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- xcode-archive@3:
- scheme: "$BITRISE_SCHEME"
- test_repetition_mode: retry_on_failure
- xcode-archive@4:
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- scheme: "$BITRISE_SCHEME"
- force_code_sign_identity: "$BITRISE_CODE_SIGNING_IDENTITY"
- force_provisioning_profile: "$BITRISE_PROFILE_ID"
- compile_bitcode: 'no'
- upload_bitcode: 'no'
- team_id: "$BITRISE_TEAM"
- export_method: "$BITRISE_EXPORT_METHOD"
- deploy-to-bitrise-io@1: {}
- distribution_method: "$BITRISE_DISTRIBUTION_METHOD"
- automatic_code_signing: api-key
- cache-push@2: {}
- deploy-to-bitrise-io@2: {}
primary:
description: |
The workflow executes the tests. The *retry_on_failure* test repetition mode is enabled.

Next steps:
- Check out [Getting started with iOS apps](https://devcenter.bitrise.io/en/getting-started/getting-started-with-ios-apps.html).
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4: {}
- activate-ssh-key@4: {}
- git-clone@6: {}
- cache-pull@2: {}
- certificate-and-profile-installer@1: {}
- recreate-user-schemes@1:
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- xcode-test@2:
- xcode-test@4:
inputs:
- project_path: "$BITRISE_PROJECT_PATH"
- scheme: "$BITRISE_SCHEME"
- deploy-to-bitrise-io@1: {}
- test_repetition_mode: retry_on_failure
- cache-push@2: {}
- deploy-to-bitrise-io@2: {}
meta:
bitrise.io:
stack: osx-xcode-13.2.x
app:
envs:
- opts:
is_expand: false
BITRISE_PROJECT_PATH: BitriseTest.xcodeproj
- opts:
is_expand: false
BITRISE_SCHEME: BitriseTest
- opts:
is_expand: false
BITRISE_EXPORT_METHOD: development
- opts:
is_expand: false
BITRISE_PROFILE_ID: b103a1f0-1f51-4d53-a41f-c08719676e94
- opts:
is_expand: false
BITRISE_CODE_SIGNING_IDENTITY: 'iPhone Developer: Dev Portal Bot Bitrise (E89JV3W9K4)'
BITRISE_SCHEME: BasicScheme
- opts:
is_expand: false
BITRISE_TEAM: 72SA8V3WYL
BITRISE_DISTRIBUTION_METHOD: development