Skip to content

Commit

Permalink
[MMI] Adds mmi build step (#20207)
Browse files Browse the repository at this point in the history
* adds prep-build-mmi

* adds validate-source-maps-mmi

* adds test-mozilla-lint-mmi

* clean up
  • Loading branch information
zone-live authored Jul 27, 2023
1 parent f584f56 commit 72b274d
Showing 1 changed file with 68 additions and 0 deletions.
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

0 comments on commit 72b274d

Please sign in to comment.