Revision control

Copy as Markdown

format_version: '8'
app:
envs:
- opts:
is_expand: false
XCODEBUILD_OPTIONS: '"ONLY_ACTIVE_ARCH=YES" "COMPILER_INDEX_STORE_ENABLE=NO" -collect-test-diagnostics never -skipMacroValidation'
pipelines:
pipeline_firefox_fullfunctional_iphone:
workflows:
firefox_fullfunctional_iphone: {}
firefox_fullfunctional_shard:
depends_on:
- firefox_fullfunctional_iphone
parallel: 4
firefox_fullfunctional_report:
depends_on:
- firefox_fullfunctional_shard
should_always_run: workflow
pipeline_firefox_nightly_fullfunctional_iphone:
workflows:
firefox_nightly_fullfunctional_iphone: {}
firefox_fullfunctional_shard:
depends_on:
- firefox_nightly_fullfunctional_iphone
parallel: 4
firefox_fullfunctional_report:
depends_on:
- firefox_fullfunctional_shard
should_always_run: workflow
pipeline_firefox_fullfunctional_ipad:
workflows:
firefox_fullfunctional_ipad: {}
firefox_fullfunctional_shard:
depends_on:
- firefox_fullfunctional_ipad
parallel: 4
firefox_fullfunctional_report:
depends_on:
- firefox_fullfunctional_shard
should_always_run: workflow
pipeline_firefox_fullfunctional_iphoneduo:
workflows:
firefox_fullfunctional_iphoneduo: {}
firefox_fullfunctional_shard:
depends_on:
- firefox_fullfunctional_iphoneduo
parallel: 4
firefox_fullfunctional_report:
depends_on:
- firefox_fullfunctional_shard
should_always_run: workflow
pipeline_firefox_tests_ios18:
workflows:
firefox_tests_ios18: {}
firefox_smoketest_run:
depends_on:
- firefox_tests_ios18
firefox_fullfunctional_shard:
depends_on:
- firefox_tests_ios18
parallel: 4
firefox_fullfunctional_report:
depends_on:
- firefox_smoketest_run
- firefox_fullfunctional_shard
should_always_run: workflow
pipeline_firefox_tests_ios26:
workflows:
firefox_tests_ios26: {}
firefox_smoketest_run:
depends_on:
- firefox_tests_ios26
firefox_fullfunctional_shard:
depends_on:
- firefox_tests_ios26
parallel: 4
firefox_fullfunctional_report:
depends_on:
- firefox_smoketest_run
- firefox_fullfunctional_shard
should_always_run: workflow
workflows:
firefox_nightly_smoketest_iphone:
envs:
- SLACK_TITLE: Nightly Smoketest iPhone (Fennec Scheme)
- DESTINATION: platform=iOS Simulator,name=iPhone 18 Pro,OS=27.0
- SCHEME: Fennec
after_run:
- _firefox_smoketest
firefox_smoketest_iphone:
envs:
- SLACK_TITLE: Smoketest iPhone
- DESTINATION: platform=iOS Simulator,name=iPhone 18 Pro,OS=27.0
- SCHEME: Firefox
after_run:
- _firefox_smoketest
firefox_smoketest_ipad:
envs:
- SLACK_TITLE: Smoketest iPad
- DESTINATION: platform=iOS Simulator,name=iPad (A16),OS=27.0
- SCHEME: Firefox
after_run:
- _firefox_smoketest
firefox_smoketest_iphoneduo:
envs:
- SLACK_TITLE: Smoketest iPhone Duo
- DESTINATION: platform=iOS Simulator,name=iPhone Duo,OS=27.1
- SCHEME: Firefox
after_run:
- _firefox_smoketest
_firefox_smoketest:
description: >-
Shared steps for the Firefox smoke tests workflows.
before_run:
- 1_git_clone_and_post_clone
- 2_certificate_and_profile
- 3_provisioning_and_npm_installation
- skip_macro_validation
steps:
- restore-spm-cache@3:
is_always_run: true
- activate-build-cache-for-xcode@0: {}
- xcode-build-for-test@3:
title: Build Firefox iOS
timeout: 360
inputs:
- scheme: $SCHEME
- configuration: Debug
- project_path: /Users/vagrant/git/firefox-ios/Client.xcodeproj
- test_plan: Smoketest
- xcodebuild_options: $XCODEBUILD_OPTIONS
- destination: $DESTINATION
- script@1:
title: Determine device type
is_always_run: true
inputs:
- content: bitrise/scripts/set-destination-label.sh "$DESTINATION"
- xcode-test-without-building@1:
title: Run all smoke tests
timeout: 3000
inputs:
- destination: $DESTINATION
- xcodebuild_options: $XCODEBUILD_OPTIONS
- deploy-to-bitrise-io@2:
is_always_run: true
- slack@4:
is_always_run: true
inputs:
- title: ''
- author_name: ''
- webhook_url: "$WEBHOOK_SLACK_TOKEN"
- footer_icon: https://emoji.slack-edge.com/T07DB2PSS3W/testops-notify/55edcdb3371320b6.png
- footer: Created by Mobile Test Engineering
- footer_icon_on_error: https://emoji.slack-edge.com/T07DB2PSS3W/testops-notify/55edcdb3371320b6.png
- footer_on_error: Created by Mobile Test Engineering
- pretext_on_error: "*Firefox-iOS* :firefox: *${SLACK_TITLE}* :x:"
- message_on_error: ''
- color_on_error: danger
- pretext: "*Firefox-iOS* :firefox: *${SLACK_TITLE}* :white_check_mark:"
- message: ''
- timestamp: 'no'
- fields: |
Branch | ${BITRISE_GIT_BRANCH}
Scheme | ${SCHEME}
Device | ${DESTINATION_LABEL}
- buttons: |
Build Log|${BITRISE_BUILD_URL}
Test Report|${BITRISE_BUILD_URL}?tab=tests
focus_tests_ios18:
envs:
- SLACK_TITLE: Smoketest and Full Functional Tests iPhone and iPad (iOS 18.6)
- IPHONE_DESTINATION: platform=iOS Simulator,name=iPhone 16,OS=18.6
- IPAD_DESTINATION: platform=iOS Simulator,name=iPad (A16),OS=18.6
after_run:
- _focus_smoke_fullfunctional_tests
focus_tests_ios26:
envs:
- SLACK_TITLE: Smoketest and Full Functional Tests iPhone and iPad (iOS 26.5)
- IPHONE_DESTINATION: platform=iOS Simulator,name=iPhone 17,OS=26.5
- IPAD_DESTINATION: platform=iOS Simulator,name=iPad (A16),OS=26.5
after_run:
- _focus_smoke_fullfunctional_tests
focus_tests_ios27:
envs:
- SLACK_TITLE: Smoketest and Full Functional Tests iPhone, iPad and iPhone Duo (iOS 27.0)
- IPHONE_DESTINATION: platform=iOS Simulator,name=iPhone 18 Pro,OS=27.0
- IPAD_DESTINATION: platform=iOS Simulator,name=iPad (A16),OS=27.0
- DUO_DESTINATION: platform=iOS Simulator,name=iPhone Duo,OS=27.1
after_run:
- _focus_smoke_fullfunctional_tests
_focus_smoke_fullfunctional_tests:
description: >-
Compile Focus. Run both smoke tests and full functional tests on iPhone, iPad and iPhone Duo (when applicable).
before_run:
- focus-clone-and-build-dependencies
- focus-set-default-browser-entitlement
steps:
- xcode-build-for-test@3:
title: Build Focus iOS
inputs:
- scheme: Focus
- configuration: FocusDebug
- project_path: focus-ios/Blockzilla.xcodeproj
- xcodebuild_options: '"ONLY_ACTIVE_ARCH=YES" "COMPILER_INDEX_STORE_ENABLE=NO" "CODE_SIGN_IDENTITY=" "CODE_SIGNING_REQUIRED=NO" "CODE_SIGNING_ALLOWED=NO" -collect-test-diagnostics never -skipMacroValidation'
- destination: $IPHONE_DESTINATION
- script@1:
title: Determine device type
is_always_run: true
inputs:
- content: bitrise/scripts/set-destination-label.sh "$IPHONE_DESTINATION" "$IPAD_DESTINATION" "$DUO_DESTINATION"
- xcode-test-without-building@1:
title: Focus Smoketest - iPhone
is_always_run: true
run_if: '{{getenv "BITRISE_TEST_BUNDLE_PATH" | ne ""}}'
inputs:
- destination: $IPHONE_DESTINATION
- xctestrun: $BITRISE_TEST_BUNDLE_PATH/Focus_SmokeTest_iphonesimulator27.1-arm64.xctestrun
- xcodebuild_options: $XCODEBUILD_OPTIONS
- xcode-test-without-building@1:
title: Focus Full Functional Tests - iPhone
is_always_run: true
run_if: '{{getenv "BITRISE_TEST_BUNDLE_PATH" | ne ""}}'
inputs:
- destination: $IPHONE_DESTINATION
- xctestrun: $BITRISE_TEST_BUNDLE_PATH/Focus_FullFunctionalTests_iphonesimulator27.1-arm64.xctestrun
- xcodebuild_options: $XCODEBUILD_OPTIONS
- xcode-test-without-building@1:
title: Focus Smoketest - iPad
is_always_run: true
run_if: '{{getenv "BITRISE_TEST_BUNDLE_PATH" | ne ""}}'
inputs:
- destination: $IPAD_DESTINATION
- xctestrun: $BITRISE_TEST_BUNDLE_PATH/Focus_SmokeTest_iphonesimulator27.1-arm64.xctestrun
- xcodebuild_options: $XCODEBUILD_OPTIONS
- xcode-test-without-building@1:
title: Focus Full Functional Tests - iPad
is_always_run: true
run_if: '{{getenv "BITRISE_TEST_BUNDLE_PATH" | ne ""}}'
inputs:
- destination: $IPAD_DESTINATION
- xctestrun: $BITRISE_TEST_BUNDLE_PATH/Focus_FullFunctionalTests_iphonesimulator27.1-arm64.xctestrun
- xcodebuild_options: $XCODEBUILD_OPTIONS
- xcode-test-without-building@1:
title: Focus Smoketest - iPhone Duo
is_always_run: true
run_if: '{{and (getenv "DUO_DESTINATION" | ne "") (getenv "BITRISE_TEST_BUNDLE_PATH" | ne "")}}'
inputs:
- destination: $DUO_DESTINATION
- xctestrun: $BITRISE_TEST_BUNDLE_PATH/Focus_SmokeTest_iphonesimulator27.1-arm64.xctestrun
- xcodebuild_options: $XCODEBUILD_OPTIONS
- xcode-test-without-building@1:
title: Focus Full Functional Tests - iPhone Duo
is_always_run: true
run_if: '{{and (getenv "DUO_DESTINATION" | ne "") (getenv "BITRISE_TEST_BUNDLE_PATH" | ne "")}}'
inputs:
- destination: $DUO_DESTINATION
- xctestrun: $BITRISE_TEST_BUNDLE_PATH/Focus_FullFunctionalTests_iphonesimulator27.1-arm64.xctestrun
- xcodebuild_options: $XCODEBUILD_OPTIONS
- deploy-to-bitrise-io@2:
is_always_run: true
- slack@4:
is_always_run: true
inputs:
- title: ''
- author_name: ''
- webhook_url: "$WEBHOOK_SLACK_TOKEN"
- footer_icon: https://emoji.slack-edge.com/T07DB2PSS3W/testops-notify/55edcdb3371320b6.png
- footer: Created by Mobile Test Engineering
- footer_icon_on_error: https://emoji.slack-edge.com/T07DB2PSS3W/testops-notify/55edcdb3371320b6.png
- footer_on_error: Created by Mobile Test Engineering
- pretext_on_error: "*Focus-iOS* *${SLACK_TITLE}* :x:"
- message_on_error: ''
- color_on_error: danger
- pretext: "*Focus-iOS* *${SLACK_TITLE}* :white_check_mark:"
- message: ''
- timestamp: 'no'
- fields: |
Branch | ${BITRISE_GIT_BRANCH}
Devices | ${DESTINATION_LABEL}
- buttons: |
Build Log|${BITRISE_BUILD_URL}
Test Report|${BITRISE_BUILD_URL}?tab=tests
firefox_nightly_fullfunctional_iphone:
envs:
- SLACK_TITLE: Nightly Full Functional Tests iPhone (Fennec Scheme)
- DESTINATION: platform=iOS Simulator,name=iPhone 18 Pro,OS=27.0
- SCHEME: Fennec
after_run:
- _firefox_fullfunctional_build
firefox_fullfunctional_iphone:
envs:
- SLACK_TITLE: Full Functional Tests iPhone
- DESTINATION: platform=iOS Simulator,name=iPhone 18 Pro,OS=27.0
- SCHEME: Firefox
after_run:
- _firefox_fullfunctional_build
firefox_fullfunctional_ipad:
envs:
- SLACK_TITLE: Full Functional Tests iPad
- DESTINATION: platform=iOS Simulator,name=iPad (A16),OS=27.0
- SCHEME: Firefox
after_run:
- _firefox_fullfunctional_build
firefox_fullfunctional_iphoneduo:
envs:
- SLACK_TITLE: Full Functional Tests iPhone Duo
- DESTINATION: platform=iOS Simulator,name=iPhone Duo,OS=27.1
- SCHEME: Firefox
after_run:
- _firefox_fullfunctional_build
firefox_tests_ios18:
envs:
- SLACK_TITLE: Smoketest and Full Functional Tests iPhone (iOS 18.6)
- DESTINATION: platform=iOS Simulator,name=iPhone 16,OS=18.6
- SCHEME: Firefox
after_run:
- _firefox_fullfunctional_build
firefox_tests_ios26:
envs:
- SLACK_TITLE: Smoketest and Full Functional Tests iPhone (iOS 26.5)
- DESTINATION: platform=iOS Simulator,name=iPhone 17,OS=26.5
- SCHEME: Firefox
after_run:
- _firefox_fullfunctional_build
_firefox_fullfunctional_build:
description: Build Firefox iOS and run the full functional tests using multiple shards.
before_run:
- 1_git_clone_and_post_clone
- 2_certificate_and_profile
- 3_provisioning_and_npm_installation
- skip_macro_validation
steps:
- restore-spm-cache@3:
is_always_run: true
- activate-build-cache-for-xcode@0: {}
- xcode-build-for-test@3:
title: Build Firefox iOS
inputs:
- scheme: $SCHEME
- configuration: Debug
- project_path: /Users/vagrant/git/firefox-ios/Client.xcodeproj
- xcodebuild_options: $XCODEBUILD_OPTIONS
- destination: $DESTINATION
- script@1:
title: Determine device type
is_always_run: true
inputs:
- content: bitrise/scripts/set-destination-label.sh "$DESTINATION"
- xcode-test-shard-calculation@0:
inputs:
- product_path: $BITRISE_TEST_BUNDLE_PATH/${SCHEME}_FullFunctionalTestPlan_iphonesimulator27.1-arm64.xctestrun
- shard_count: 4
- destination: $DESTINATION
- deploy-to-bitrise-io@2:
inputs:
- pipeline_intermediate_files: |-
BITRISE_TEST_SHARDS_PATH
BITRISE_TEST_BUNDLE_PATH
- share-pipeline-variable@1:
inputs:
- variables: |-
SCHEME
DESTINATION
SLACK_TITLE
DESTINATION_LABEL
firefox_smoketest_run:
description: Run the Firefox smoke tests
before_run:
- 1_git_clone_and_post_clone
steps:
- pull-intermediate-files@1: {}
- xcode-test-without-building@1:
title: Run smoke tests
inputs:
- destination: $DESTINATION
- xctestrun: $BITRISE_TEST_BUNDLE_PATH/${SCHEME}_Smoketest_iphonesimulator27.1-arm64.xctestrun
- xcodebuild_options: $XCODEBUILD_OPTIONS
- deploy-to-bitrise-io@2:
is_always_run: true
firefox_fullfunctional_shard:
description: Run one shard of the Firefox full functional tests
before_run:
- 1_git_clone_and_post_clone
steps:
- pull-intermediate-files@1: {}
- xcode-test-without-building@1:
title: Run full functional tests shard
timeout: 7200
inputs:
- only_testing: $BITRISE_TEST_SHARDS_PATH/$BITRISE_IO_PARALLEL_INDEX
- destination: $DESTINATION
- xctestrun: $BITRISE_TEST_BUNDLE_PATH/${SCHEME}_FullFunctionalTestPlan_iphonesimulator27.1-arm64.xctestrun
- xcodebuild_options: $XCODEBUILD_OPTIONS
- deploy-to-bitrise-io@2:
is_always_run: true
firefox_fullfunctional_report:
description: Report the full functional test result to Slack
steps:
- slack@4:
is_always_run: true
inputs:
- title: ''
- author_name: ''
- webhook_url: "$WEBHOOK_SLACK_TOKEN"
- footer_icon: https://emoji.slack-edge.com/T07DB2PSS3W/testops-notify/55edcdb3371320b6.png
- footer: Created by Mobile Test Engineering
- footer_icon_on_error: https://emoji.slack-edge.com/T07DB2PSS3W/testops-notify/55edcdb3371320b6.png
- footer_on_error: Created by Mobile Test Engineering
- pretext_on_error: "*Firefox-iOS* :firefox: *${SLACK_TITLE}* :x:"
- message_on_error: ''
- color_on_error: danger
- pretext: "*Firefox-iOS* :firefox: *${SLACK_TITLE}* :white_check_mark:"
- message: ''
- timestamp: 'no'
- fields: |
Branch | ${BITRISE_GIT_BRANCH}
Scheme | ${SCHEME}
Device | ${DESTINATION_LABEL}
- buttons: |
Build Log|https://app.bitrise.io/app/${BITRISE_APP_SLUG}/pipelines/${BITRISEIO_PIPELINE_ID}
Test Report|https://app.bitrise.io/app/${BITRISE_APP_SLUG}/pipelines/${BITRISEIO_PIPELINE_ID}?tab=tests