Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MMI] Adds mmi build step #20207

Merged
merged 4 commits into from
Jul 27, 2023
Merged
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
68 changes: 68 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ workflows:
build-type: [main, beta, flask, mmi, desktop]
requires:
- prep-deps
- prep-build-mmi:
requires:
- prep-deps
- prep-build:
requires:
- prep-deps
Expand Down Expand Up @@ -186,6 +189,9 @@ workflows:
ignore: master
requires:
- prep-build-desktop
- validate-source-maps-mmi:
requires:
- prep-build-mmi
- validate-source-maps-flask:
requires:
- prep-build-flask
Expand Down Expand Up @@ -222,6 +228,7 @@ workflows:
- validate-source-maps-beta
- validate-source-maps-desktop
- validate-source-maps-flask
- validate-source-maps-mmi
- test-mozilla-lint
- test-mozilla-lint-desktop
- test-mozilla-lint-flask
Expand All @@ -245,6 +252,7 @@ workflows:
- prep-build
- trigger-beta-build
- prep-build-desktop
- prep-build-mmi
- prep-build-flask
- prep-build-storybook
- prep-build-ts-migration-dashboard
Expand All @@ -261,6 +269,7 @@ workflows:
- prep-deps
- prep-build
- prep-build-desktop
- prep-build-mmi
- prep-build-flask
- all-tests-pass
- job-publish-storybook:
Expand Down Expand Up @@ -472,6 +481,49 @@ jobs:
- dist-desktop
- builds-desktop

prep-build-mmi:
executor: node-browsers-medium-plus
steps:
- run: *shallow-git-clone
- attach_workspace:
at: .
- when:
condition:
not:
matches:
pattern: /^master$/
value: << pipeline.git.branch >>
steps:
- run:
name: build:dist
command: yarn build --build-type mmi dist
- when:
condition:
matches:
pattern: /^master$/
value: << pipeline.git.branch >>
steps:
- run:
name: build:prod
command: yarn build --build-type mmi prod
- run:
name: build:debug
command: find dist/ -type f -exec md5sum {} \; | sort -k 2
- run:
name: Move mmi build to 'dist-mmi' to avoid conflict with production build
command: mv ./dist ./dist-mmi
- run:
name: Move mmi zips to 'builds-mmi' to avoid conflict with production build
command: mv ./builds ./builds-mmi
- persist_to_workspace:
root: .
paths:
- dist-mmi
- builds-mmi
- store_artifacts:
path: builds-mmi
destination: builds-mmi

prep-build-flask:
executor: node-browsers-medium-plus
steps:
Expand Down Expand Up @@ -1188,6 +1240,22 @@ jobs:
name: Validate source maps
command: yarn validate-source-maps

validate-source-maps-mmi:
executor: node-browsers
steps:
- run: *shallow-git-clone
- attach_workspace:
at: .
- run:
name: Move mmi build to dist
command: mv ./dist-mmi ./dist
- run:
name: Move mmi zips to builds
command: mv ./builds-mmi ./builds
- run:
name: Validate source maps
command: yarn validate-source-maps

validate-source-maps-flask:
executor: node-browsers
steps:
Expand Down