From 821f4c0b37719c49f15eace4b91205feaba4230e Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Wed, 20 Oct 2021 08:55:05 -0500 Subject: [PATCH 01/22] use my dev profile --- BitriseTest.xcodeproj/project.pbxproj | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/BitriseTest.xcodeproj/project.pbxproj b/BitriseTest.xcodeproj/project.pbxproj index 25d1745..3d87bce 100644 --- a/BitriseTest.xcodeproj/project.pbxproj +++ b/BitriseTest.xcodeproj/project.pbxproj @@ -417,9 +417,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_IDENTITY = "iPhone Developer"; 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; @@ -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"; }; @@ -440,9 +441,10 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_IDENTITY = "iPhone Developer"; 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; @@ -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"; }; @@ -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)", @@ -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"; @@ -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)", @@ -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"; From 6afe5859061c62c8bc3f8ccde147f128532c14cc Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Wed, 20 Oct 2021 08:59:39 -0500 Subject: [PATCH 02/22] use g2 elite --- bitrise.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bitrise.yml b/bitrise.yml index e165ba3..8d64fd1 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -66,3 +66,6 @@ app: - opts: is_expand: false BITRISE_TEAM: 72SA8V3WYL +meta: + bitrise.io: + machine_type_id: g2.8core From ab0019fd07e55df3eed940611c0ad3ef10ef62cd Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Wed, 20 Oct 2021 09:07:12 -0500 Subject: [PATCH 03/22] adds scheme --- .../xcschemes/BasicScheme.xcscheme | 98 +++++++++++++++++++ bitrise.yml | 8 +- 2 files changed, 99 insertions(+), 7 deletions(-) create mode 100644 BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme diff --git a/BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme b/BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme new file mode 100644 index 0000000..e38c91b --- /dev/null +++ b/BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bitrise.yml b/bitrise.yml index 8d64fd1..9d76769 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -15,9 +15,6 @@ workflows: - git-clone@4: {} - cache-pull@2: {} - certificate-and-profile-installer@1: {} - - recreate-user-schemes@1: - inputs: - - project_path: "$BITRISE_PROJECT_PATH" - xcode-archive@3: inputs: - project_path: "$BITRISE_PROJECT_PATH" @@ -37,9 +34,6 @@ workflows: - git-clone@4: {} - cache-pull@2: {} - certificate-and-profile-installer@1: {} - - recreate-user-schemes@1: - inputs: - - project_path: "$BITRISE_PROJECT_PATH" - xcode-test@2: inputs: - project_path: "$BITRISE_PROJECT_PATH" @@ -53,7 +47,7 @@ app: BITRISE_PROJECT_PATH: BitriseTest.xcodeproj - opts: is_expand: false - BITRISE_SCHEME: BitriseTest + BITRISE_SCHEME: BasicScheme - opts: is_expand: false BITRISE_EXPORT_METHOD: development From 46172ed8a4880a335084130d70afab0d5549a2a1 Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Wed, 20 Oct 2021 09:08:53 -0500 Subject: [PATCH 04/22] sets signing cert --- BitriseTest.xcodeproj/project.pbxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BitriseTest.xcodeproj/project.pbxproj b/BitriseTest.xcodeproj/project.pbxproj index 3d87bce..849c413 100644 --- a/BitriseTest.xcodeproj/project.pbxproj +++ b/BitriseTest.xcodeproj/project.pbxproj @@ -417,7 +417,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_IDENTITY = "Apple Development: Ben Boral (L5Y7PBM38G)"; CODE_SIGN_STYLE = Manual; DEVELOPMENT_ASSET_PATHS = "\"BitriseTest/Preview Content\""; DEVELOPMENT_TEAM = 72SA8V3WYL; @@ -441,7 +441,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_IDENTITY = "iPhone Developer"; + CODE_SIGN_IDENTITY = "Apple Development: Ben Boral (L5Y7PBM38G)"; CODE_SIGN_STYLE = Manual; DEVELOPMENT_ASSET_PATHS = "\"BitriseTest/Preview Content\""; DEVELOPMENT_TEAM = 72SA8V3WYL; From 7de2bfa00614fd41e7a4f7fdbcb2ad0378d484b0 Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Wed, 20 Oct 2021 09:10:15 -0500 Subject: [PATCH 05/22] sets signing identify in bitrise.yml --- bitrise.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitrise.yml b/bitrise.yml index 9d76769..34b4c41 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -56,7 +56,7 @@ app: BITRISE_PROFILE_ID: b103a1f0-1f51-4d53-a41f-c08719676e94 - opts: is_expand: false - BITRISE_CODE_SIGNING_IDENTITY: 'iPhone Developer: Dev Portal Bot Bitrise (E89JV3W9K4)' + BITRISE_CODE_SIGNING_IDENTITY: 'Apple Development: Ben Boral (L5Y7PBM38G)' - opts: is_expand: false BITRISE_TEAM: 72SA8V3WYL From b5002ec30c8c57b2a6dc1c60ef3ab5167dc7435e Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Wed, 20 Oct 2021 09:15:30 -0500 Subject: [PATCH 06/22] do keep screenshots on success --- .../xcshareddata/xcschemes/BasicScheme.xcscheme | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme b/BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme index e38c91b..6111733 100644 --- a/BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme +++ b/BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme @@ -26,7 +26,8 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + systemAttachmentLifetime = "keepAlways"> From 105746128263b7450a04ddf05d604731a4fc1b23 Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 11 Nov 2021 13:55:12 -0500 Subject: [PATCH 07/22] set xcode 13.1 --- bitrise.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/bitrise.yml b/bitrise.yml index 34b4c41..8e190b1 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -63,3 +63,4 @@ app: meta: bitrise.io: machine_type_id: g2.8core + stack: osx-xcode-13.1.x \ No newline at end of file From 1d7d3ddcf1c8840efd05e770e6aecbe9c13a72f0 Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 18 Nov 2021 11:40:36 -0600 Subject: [PATCH 08/22] use 13.2 stack --- bitrise.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitrise.yml b/bitrise.yml index 8e190b1..65433cb 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -63,4 +63,4 @@ app: meta: bitrise.io: machine_type_id: g2.8core - stack: osx-xcode-13.1.x \ No newline at end of file + stack: osx-xcode-13.2.x From a2b1a163a33eaaedccb713be0b103f6899412ad0 Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 18 Nov 2021 11:41:32 -0600 Subject: [PATCH 09/22] run release workflow on master branch --- bitrise.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitrise.yml b/bitrise.yml index 65433cb..36ce527 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -3,6 +3,8 @@ format_version: '8' default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git project_type: ios trigger_map: +- push_branch: "master" + workflow: release - push_branch: "*" workflow: primary - pull_request_source_branch: "*" From f8967d7c0a065cebff1afe27d01cf2fef93b834b Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 18 Nov 2021 11:46:06 -0600 Subject: [PATCH 10/22] use the correct workflow name --- bitrise.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitrise.yml b/bitrise.yml index 36ce527..841fc4c 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -4,7 +4,7 @@ default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git project_type: ios trigger_map: - push_branch: "master" - workflow: release + workflow: deploy - push_branch: "*" workflow: primary - pull_request_source_branch: "*" From da00371960c5243a4d3b5f997cc8dec04e314ccc Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 18 Nov 2021 11:47:14 -0600 Subject: [PATCH 11/22] what happens if i set an invalid stack? --- bitrise.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitrise.yml b/bitrise.yml index 841fc4c..0f76b9c 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -65,4 +65,4 @@ app: meta: bitrise.io: machine_type_id: g2.8core - stack: osx-xcode-13.2.x + stack: osx-xcode-13.4.x From 790026d2055fd69013e5997915f3559bd6402175 Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 18 Nov 2021 11:56:06 -0600 Subject: [PATCH 12/22] Revert "what happens if i set an invalid stack?" This reverts commit da00371960c5243a4d3b5f997cc8dec04e314ccc. --- bitrise.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitrise.yml b/bitrise.yml index 0f76b9c..841fc4c 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -65,4 +65,4 @@ app: meta: bitrise.io: machine_type_id: g2.8core - stack: osx-xcode-13.4.x + stack: osx-xcode-13.2.x From 0adce44cf9c6ebf5900e64406ee265c12c329484 Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 18 Nov 2021 11:57:37 -0600 Subject: [PATCH 13/22] invalid machine type --- bitrise.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitrise.yml b/bitrise.yml index 841fc4c..eec267f 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -64,5 +64,5 @@ app: BITRISE_TEAM: 72SA8V3WYL meta: bitrise.io: - machine_type_id: g2.8core + machine_type_id: g3.8core stack: osx-xcode-13.2.x From 3db50651eafe23a4e6077dc6a9808c44692c19e6 Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 18 Nov 2021 12:03:23 -0600 Subject: [PATCH 14/22] Revert "invalid machine type" This reverts commit 0adce44cf9c6ebf5900e64406ee265c12c329484. --- bitrise.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitrise.yml b/bitrise.yml index eec267f..841fc4c 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -64,5 +64,5 @@ app: BITRISE_TEAM: 72SA8V3WYL meta: bitrise.io: - machine_type_id: g3.8core + machine_type_id: g2.8core stack: osx-xcode-13.2.x From 16cb557cc28543131a87a6ea44a00bb3a213fd40 Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 18 Nov 2021 12:18:14 -0600 Subject: [PATCH 15/22] workflow specific stack --- bitrise.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bitrise.yml b/bitrise.yml index 841fc4c..a4df77c 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -42,6 +42,10 @@ workflows: - scheme: "$BITRISE_SCHEME" - deploy-to-bitrise-io@1: {} - cache-push@2: {} + meta: + bitrise.io: + machine_type_id: g2.8core + stack: osx-xcode-13.1.x app: envs: - opts: From 37724335aed7aa37e7d83c550deb93cfa1f0fc7f Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 18 Nov 2021 12:19:31 -0600 Subject: [PATCH 16/22] workflow specific stack --- bitrise.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bitrise.yml b/bitrise.yml index a4df77c..56e389d 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -29,6 +29,10 @@ workflows: - export_method: "$BITRISE_EXPORT_METHOD" - deploy-to-bitrise-io@1: {} - cache-push@2: {} + meta: + bitrise.io: + machine_type_id: g2.8core + stack: osx-xcode-13.1.x primary: steps: - activate-ssh-key@4: @@ -42,10 +46,6 @@ workflows: - scheme: "$BITRISE_SCHEME" - deploy-to-bitrise-io@1: {} - cache-push@2: {} - meta: - bitrise.io: - machine_type_id: g2.8core - stack: osx-xcode-13.1.x app: envs: - opts: From 4d0d3d2af36b3fd2d120480b8f6baadce7ea771c Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 18 Nov 2021 12:20:50 -0600 Subject: [PATCH 17/22] workflow specific stack --- bitrise.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bitrise.yml b/bitrise.yml index 56e389d..9733c18 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -46,6 +46,10 @@ workflows: - scheme: "$BITRISE_SCHEME" - deploy-to-bitrise-io@1: {} - cache-push@2: {} + meta: + bitrise.io: + machine_type_id: g2.8core + stack: osx-xcode-13.2.x app: envs: - opts: @@ -69,4 +73,4 @@ app: meta: bitrise.io: machine_type_id: g2.8core - stack: osx-xcode-13.2.x + stack: osx-xcode-13.1.x From e10ddf868d9d50cf7f6d91635674d7b9276e2aaa Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Fri, 21 Jan 2022 10:39:16 -0600 Subject: [PATCH 18/22] removes machine selector --- bitrise.yml | 83 ++++++++++++++++++++++++++--------------------------- 1 file changed, 41 insertions(+), 42 deletions(-) diff --git a/bitrise.yml b/bitrise.yml index 9733c18..fb7e2b0 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -1,13 +1,35 @@ ---- -format_version: '8' +format_version: "8" default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git project_type: ios +app: + envs: + - BITRISE_PROJECT_PATH: BitriseTest.xcodeproj + opts: + is_expand: false + - BITRISE_SCHEME: BasicScheme + 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: 'Apple Development: Ben Boral (L5Y7PBM38G)' + opts: + is_expand: false + - BITRISE_TEAM: 72SA8V3WYL + opts: + is_expand: false +meta: + bitrise.io: + stack: osx-xcode-13.1.x trigger_map: -- push_branch: "master" +- push_branch: master workflow: deploy -- push_branch: "*" +- push_branch: '*' workflow: primary -- pull_request_source_branch: "*" +- pull_request_source_branch: '*' workflow: primary workflows: deploy: @@ -19,58 +41,35 @@ workflows: - certificate-and-profile-installer@1: {} - xcode-archive@3: 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" + - 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: {} - cache-push@2: {} meta: bitrise.io: - machine_type_id: g2.8core stack: osx-xcode-13.1.x primary: steps: - activate-ssh-key@4: run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' - - git-clone@4: {} + - git-clone@6.1: + inputs: + - clone_depth: "100" - cache-pull@2: {} - certificate-and-profile-installer@1: {} - xcode-test@2: inputs: - - project_path: "$BITRISE_PROJECT_PATH" - - scheme: "$BITRISE_SCHEME" + - project_path: $BITRISE_PROJECT_PATH + - xcodebuild_test_options: -parallel-testing-enabled YES -parallel-testing-worker-count 3 + - scheme: $BITRISE_SCHEME - deploy-to-bitrise-io@1: {} - cache-push@2: {} meta: bitrise.io: - machine_type_id: g2.8core stack: osx-xcode-13.2.x -app: - envs: - - opts: - is_expand: false - BITRISE_PROJECT_PATH: BitriseTest.xcodeproj - - opts: - is_expand: false - BITRISE_SCHEME: BasicScheme - - 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: 'Apple Development: Ben Boral (L5Y7PBM38G)' - - opts: - is_expand: false - BITRISE_TEAM: 72SA8V3WYL -meta: - bitrise.io: - machine_type_id: g2.8core - stack: osx-xcode-13.1.x From 59fadebc87c2655ea59b4b495815775dd136d9af Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Fri, 21 Jan 2022 10:40:19 -0600 Subject: [PATCH 19/22] Revert "removes machine selector" This reverts commit e10ddf868d9d50cf7f6d91635674d7b9276e2aaa. --- bitrise.yml | 83 +++++++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 41 deletions(-) diff --git a/bitrise.yml b/bitrise.yml index fb7e2b0..9733c18 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -1,35 +1,13 @@ -format_version: "8" +--- +format_version: '8' default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git project_type: ios -app: - envs: - - BITRISE_PROJECT_PATH: BitriseTest.xcodeproj - opts: - is_expand: false - - BITRISE_SCHEME: BasicScheme - 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: 'Apple Development: Ben Boral (L5Y7PBM38G)' - opts: - is_expand: false - - BITRISE_TEAM: 72SA8V3WYL - opts: - is_expand: false -meta: - bitrise.io: - stack: osx-xcode-13.1.x trigger_map: -- push_branch: master +- push_branch: "master" workflow: deploy -- push_branch: '*' +- push_branch: "*" workflow: primary -- pull_request_source_branch: '*' +- pull_request_source_branch: "*" workflow: primary workflows: deploy: @@ -41,35 +19,58 @@ workflows: - certificate-and-profile-installer@1: {} - xcode-archive@3: 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 + - 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: {} - cache-push@2: {} meta: bitrise.io: + machine_type_id: g2.8core stack: osx-xcode-13.1.x primary: steps: - activate-ssh-key@4: run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' - - git-clone@6.1: - inputs: - - clone_depth: "100" + - git-clone@4: {} - cache-pull@2: {} - certificate-and-profile-installer@1: {} - xcode-test@2: inputs: - - project_path: $BITRISE_PROJECT_PATH - - xcodebuild_test_options: -parallel-testing-enabled YES -parallel-testing-worker-count 3 - - scheme: $BITRISE_SCHEME + - project_path: "$BITRISE_PROJECT_PATH" + - scheme: "$BITRISE_SCHEME" - deploy-to-bitrise-io@1: {} - cache-push@2: {} meta: bitrise.io: + machine_type_id: g2.8core stack: osx-xcode-13.2.x +app: + envs: + - opts: + is_expand: false + BITRISE_PROJECT_PATH: BitriseTest.xcodeproj + - opts: + is_expand: false + BITRISE_SCHEME: BasicScheme + - 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: 'Apple Development: Ben Boral (L5Y7PBM38G)' + - opts: + is_expand: false + BITRISE_TEAM: 72SA8V3WYL +meta: + bitrise.io: + machine_type_id: g2.8core + stack: osx-xcode-13.1.x From ac7a243785a1fcf959bd3727882d87d5f128d26a Mon Sep 17 00:00:00 2001 From: Benjamin Boral Date: Thu, 17 Feb 2022 15:23:26 +0000 Subject: [PATCH 20/22] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ee7a5d8..8e63268 100644 --- a/README.md +++ b/README.md @@ -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 From 0814841931fbb62f054bd02fc218085f39ba1d41 Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 19 May 2022 16:04:23 -0500 Subject: [PATCH 21/22] using web version --- bitrise.yml | 82 ++++++++++++++++++++++------------------------------- 1 file changed, 34 insertions(+), 48 deletions(-) diff --git a/bitrise.yml b/bitrise.yml index 9733c18..4516485 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -1,55 +1,54 @@ --- -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: "master" - workflow: deploy -- 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: {} - - xcode-archive@3: + - xcode-test@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: {} + - test_repetition_mode: retry_on_failure + - xcode-archive@4: + inputs: + - project_path: "$BITRISE_PROJECT_PATH" + - scheme: "$BITRISE_SCHEME" + - distribution_method: "$BITRISE_DISTRIBUTION_METHOD" + - automatic_code_signing: api-key - cache-push@2: {} - meta: - bitrise.io: - machine_type_id: g2.8core - stack: osx-xcode-13.1.x + - 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: {} - - 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: {} - meta: - bitrise.io: - machine_type_id: g2.8core - stack: osx-xcode-13.2.x + - deploy-to-bitrise-io@2: {} +meta: + bitrise.io: + stack: osx-xcode-13.2.x app: envs: - opts: @@ -60,17 +59,4 @@ app: BITRISE_SCHEME: BasicScheme - 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: 'Apple Development: Ben Boral (L5Y7PBM38G)' - - opts: - is_expand: false - BITRISE_TEAM: 72SA8V3WYL -meta: - bitrise.io: - machine_type_id: g2.8core - stack: osx-xcode-13.1.x + BITRISE_DISTRIBUTION_METHOD: development \ No newline at end of file From a2af77f5906e327ceee73a2cc07dbf701db1396b Mon Sep 17 00:00:00 2001 From: Ben Boral Date: Thu, 25 Aug 2022 11:45:51 -0500 Subject: [PATCH 22/22] adds a failing test --- BitriseTestTests/BitriseTestTests.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BitriseTestTests/BitriseTestTests.swift b/BitriseTestTests/BitriseTestTests.swift index c4c19c8..47506ee 100644 --- a/BitriseTestTests/BitriseTestTests.swift +++ b/BitriseTestTests/BitriseTestTests.swift @@ -29,5 +29,9 @@ class BitriseTestTests: XCTestCase { // Put the code you want to measure the time of here. } } + + func testExampleFailing() throws { + XCTAssertEqual(2, 3) + } }