This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Optimize bitrise.yml file * reusing code in steps * update taskluster as firefox
- Loading branch information
1 parent
8cd040f
commit c3528cf
Showing
11 changed files
with
184 additions
and
293 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,43 +6,33 @@ project_type: ios | |
|
||
trigger_map: | ||
- push_branch: main | ||
pipeline: pipeline_build_and_run_tests | ||
pipeline: pipeline_build_and_run_tests_focus | ||
- pull_request_source_branch: "*" | ||
pipeline: pipeline_build_and_run_tests | ||
pipeline: pipeline_build_and_run_tests_focus | ||
- tag: "*" | ||
workflow: release | ||
|
||
pipelines: | ||
pipeline_build_and_run_tests: | ||
pipeline_build_and_run_tests_focus: | ||
stages: | ||
- stage_1: {} | ||
- stage_2: {} | ||
- stage_1_focus: {} | ||
- stage_2_focus: {} | ||
|
||
stages: | ||
stage_1: | ||
stage_1_focus: | ||
workflows: | ||
- configure_build: {} | ||
- configure_build_focus: {} | ||
|
||
stage_2: | ||
stage_2_focus: | ||
workflows: | ||
- ui_test_focus: {} | ||
- unit_test_klar: {} | ||
- unit_test_focus: {} | ||
|
||
workflows: | ||
configure_build: | ||
configure_build_focus: | ||
steps: | ||
- [email protected]: {} | ||
- cache-pull@2: {} | ||
- certificate-and-profile-installer@1: {} | ||
- activate-ssh-key@4: | ||
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | ||
- script@1: | ||
inputs: | ||
- content: |- | ||
#!/usr/bin/env bash | ||
./checkout.sh | ||
title: ContentBlockerGen | ||
- swiftlint-extended@1: | ||
inputs: | ||
- linting_path: "$BITRISE_SOURCE_DIR" | ||
|
@@ -54,16 +44,6 @@ workflows: | |
set -x | ||
/usr/libexec/PlistBuddy -c "Add :com.apple.developer.web-browser bool true" Focus.entitlements | ||
/usr/libexec/PlistBuddy -c "Add :com.apple.developer.web-browser bool true" Klar.entitlements | ||
- git::https://github.com/DamienBitrise/bitrise-test-plan-sharder.git@master: | ||
title: Bitrise Test Plan Sharder | ||
inputs: | ||
- xcode_project: Blockzilla.xcodeproj | ||
- target: Blockzilla | ||
- shards: '2' | ||
- scheme: Focus | ||
- debug_mode: 'true' | ||
- test_path: '' | ||
- file_type: ".swift" | ||
- [email protected]: | ||
title: Build for Testing Focus | ||
inputs: | ||
|
@@ -117,10 +97,8 @@ workflows: | |
- channel: "#mobile-alerts-ios" | ||
- message: "The build failed to build" | ||
- webhook_url: "$SLACK_WEBHOOK" | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
machine_type_id: g2-m1.8core | ||
before_run: | ||
- clone-and-build-dependencies | ||
|
||
ui_test_focus: | ||
steps: | ||
|
@@ -144,21 +122,6 @@ workflows: | |
envman add --key TEST_PLAN_NAME --value SmokeTest | ||
fi | ||
- title: Check if build is scheduled or regular to set the test plan | ||
- git::https://github.com/bitrise-steplib/bitrise-step-artifact-pull.git@main: | ||
title: Pull artifacts | ||
inputs: | ||
- verbose: true | ||
- artifact_sources: stage_1.* | ||
- [email protected]: | ||
title: Unzip | ||
inputs: | ||
- content: | | ||
set -euxo pipefail | ||
echo "$BITRISE_ARTIFACT_PATHS" | ||
echo "-- unzip -- " | ||
exec unzip "${BITRISE_ARTIFACT_PATHS}" | ||
echo "show dir" | ||
ls | ||
- [email protected]: | ||
title: Test without Building | ||
inputs: | ||
|
@@ -186,29 +149,11 @@ workflows: | |
- channel: "#mobile-alerts-ios" | ||
- message: "The build run the Focus testPlan: $TEST_PLAN_NAME" | ||
- webhook_url: "$SLACK_WEBHOOK" | ||
|
||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
machine_type_id: g2-m1.8core | ||
before_run: | ||
- pull-and-unzip-dependencies | ||
|
||
unit_test_klar: | ||
steps: | ||
- git::https://github.com/bitrise-steplib/bitrise-step-artifact-pull.git@main: | ||
title: Pull artifacts | ||
inputs: | ||
- verbose: true | ||
- artifact_sources: stage_1.* | ||
- [email protected]: | ||
title: Unzip | ||
inputs: | ||
- content: | | ||
set -euxo pipefail | ||
echo "$BITRISE_ARTIFACT_PATHS" | ||
echo "-- unzip -- " | ||
exec unzip "${BITRISE_ARTIFACT_PATHS}" | ||
echo "show dir" | ||
ls | ||
- [email protected]: | ||
title: Test without Building | ||
inputs: | ||
|
@@ -232,28 +177,11 @@ workflows: | |
- channel: "#mobile-alerts-ios" | ||
- message: "The build run the Klar testPlan: UnitTests" | ||
- webhook_url: "$SLACK_WEBHOOK" | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
machine_type_id: g2-m1.8core | ||
before_run: | ||
- pull-and-unzip-dependencies | ||
|
||
unit_test_focus: | ||
steps: | ||
- git::https://github.com/bitrise-steplib/bitrise-step-artifact-pull.git@main: | ||
title: Pull artifacts | ||
inputs: | ||
- verbose: true | ||
- artifact_sources: stage_1.* | ||
- [email protected]: | ||
title: Unzip | ||
inputs: | ||
- content: | | ||
set -euxo pipefail | ||
echo "$BITRISE_ARTIFACT_PATHS" | ||
echo "-- unzip -- " | ||
exec unzip "${BITRISE_ARTIFACT_PATHS}" | ||
echo "show dir" | ||
ls | ||
- [email protected]: | ||
title: Test without Building | ||
inputs: | ||
|
@@ -277,12 +205,27 @@ workflows: | |
- channel: "#mobile-alerts-ios" | ||
- message: "The build run the Focus testPlan: UnitTests" | ||
- webhook_url: "$SLACK_WEBHOOK" | ||
before_run: | ||
- pull-and-unzip-dependencies | ||
|
||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
machine_type_id: g2-m1.8core | ||
|
||
pull-and-unzip-dependencies: | ||
description: Pulls and unzip the dependencis from previous stage_1_focus | ||
steps: | ||
- git::https://github.com/bitrise-steplib/bitrise-step-artifact-pull.git@main: | ||
title: Pull artifacts | ||
inputs: | ||
- verbose: true | ||
- artifact_sources: stage_1_focus.* | ||
- [email protected]: | ||
title: Unzip | ||
inputs: | ||
- content: | | ||
set -euxo pipefail | ||
echo "$BITRISE_ARTIFACT_PATHS" | ||
echo "-- unzip -- " | ||
exec unzip "${BITRISE_ARTIFACT_PATHS}" | ||
echo "show dir" | ||
ls | ||
clone-and-build-dependencies: | ||
description: Clones the repo and builds dependencies | ||
|
@@ -297,10 +240,6 @@ workflows: | |
#!/usr/bin/env bash | ||
./checkout.sh | ||
title: ContentBlockerGen | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
|
||
|
||
set-project-version: | ||
steps: | ||
|
@@ -324,10 +263,6 @@ workflows: | |
- build_version_offset: '3250' | ||
- plist_path: focus-ios/OpenInFocus/Info.plist | ||
title: Set OpenInFocus version numbers | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
|
||
|
||
configure-nimbus: | ||
steps: | ||
|
@@ -341,11 +276,6 @@ workflows: | |
/usr/libexec/PlistBuddy -c "Add :NimbusStagingServerURL string ${NIMBUS_STAGING_SERVER_URL}" focus-ios/Blockzilla/Info.plist | ||
/usr/libexec/PlistBuddy -c "Set :NimbusAppName ${NIMBUS_APP_NAME}" focus-ios/Blockzilla/Info.plist | ||
/usr/libexec/PlistBuddy -c "Set :NimbusAppChannel ${NIMBUS_APP_CHANNEL}" focus-ios/Blockzilla/Info.plist | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
|
||
|
||
configure-sentry: | ||
steps: | ||
- script@1: | ||
|
@@ -355,10 +285,6 @@ workflows: | |
#!/usr/bin/env bash | ||
set -x | ||
/usr/libexec/PlistBuddy -c "Add :SentryDSN string ${SENTRY_DSN}" focus-ios/Blockzilla/Info.plist | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
|
||
set-default-browser-entitlement: | ||
steps: | ||
|
@@ -370,10 +296,6 @@ workflows: | |
set -x | ||
/usr/libexec/PlistBuddy -c "Add :com.apple.developer.web-browser bool true" focus-ios/Focus.entitlements | ||
/usr/libexec/PlistBuddy -c "Add :com.apple.developer.web-browser bool true" focus-ios/Klar.entitlements | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
|
||
release: | ||
steps: | ||
|
@@ -417,10 +339,7 @@ workflows: | |
set -x | ||
focus-ios/focus-ios-tests/tools/sentry-cli --auth-token "$SENTRY_AUTH_TOKEN" upload-dif \ | ||
--org mozilla --project klar-ios "$BITRISE_DSYM_DIR_PATH" | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
machine_type_id: g2-m1.8core | ||
before_run: | ||
- clone-and-build-dependencies | ||
- set-project-version | ||
|
@@ -447,23 +366,16 @@ workflows: | |
inputs: | ||
- content: >- | ||
#!/usr/bin/env bash | ||
# fail if any commands fails | ||
set -e | ||
# debug log | ||
set -x | ||
echo "curl to Download derived data" | ||
curl --location --retry 5 --output l10n-screenshots-dd.zip "$MOZ_DERIVED_DATA_PATH" | ||
mkdir l10n-screenshots-dd | ||
unzip l10n-screenshots-dd.zip -d l10n-screenshots-dd | ||
rm l10n-screenshots-dd.zip | ||
title: Download derived data path | ||
- script@1: | ||
|
@@ -488,23 +400,9 @@ workflows: | |
- [email protected]: | ||
inputs: | ||
- deploy_path: artifacts/ | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
machine_type_id: g2-m1.8core | ||
|
||
L10nBuild: | ||
steps: | ||
- activate-ssh-key@4: | ||
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | ||
- [email protected]: {} | ||
- cache-pull@2: {} | ||
- certificate-and-profile-installer@1: {} | ||
- script@1: | ||
inputs: | ||
- content: |- | ||
#!/usr/bin/env bash | ||
./checkout.sh | ||
title: ContentBlockerGen | ||
- script@1: | ||
title: Set Default Web Browser Entitlement | ||
inputs: | ||
|
@@ -530,16 +428,13 @@ workflows: | |
inputs: | ||
- deploy_path: l10n-screenshots/en-US/en-US | ||
- is_compress: 'true' | ||
meta: | ||
bitrise.io: | ||
stack: osx-xcode-15.2.x | ||
machine_type_id: g2-m1.8core | ||
|
||
before_run: | ||
- clone-and-build-dependencies | ||
app: | ||
envs: | ||
- opts: | ||
is_expand: false | ||
BITRISE_PROJECT_PATH: Blockzilla.xcodeproj | ||
BITRISE_PROJECT_PATH: focus-ios/Blockzilla.xcodeproj | ||
- opts: | ||
is_expand: false | ||
BITRISE_EXPORT_METHOD: app-store | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.