diff --git a/BitriseTest.xcodeproj/project.pbxproj b/BitriseTest.xcodeproj/project.pbxproj index 25d1745..849c413 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 = "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; @@ -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 = "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; @@ -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"; diff --git a/BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme b/BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme new file mode 100644 index 0000000..6111733 --- /dev/null +++ b/BitriseTest.xcodeproj/xcshareddata/xcschemes/BasicScheme.xcscheme @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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) + } } 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 diff --git a/bitrise.yml b/bitrise.yml index e165ba3..4516485 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -1,51 +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: "*" - 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: @@ -53,16 +56,7 @@ app: 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 \ No newline at end of file