mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-24 19:10:22 +01:00
[MMI] Adds mmi build step (#20207)
* adds prep-build-mmi * adds validate-source-maps-mmi * adds test-mozilla-lint-mmi * clean up
This commit is contained in:
parent
f584f56d9c
commit
72b274d846
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -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
|
||||
@ -261,6 +269,7 @@ workflows:
|
||||
- prep-deps
|
||||
- prep-build
|
||||
- prep-build-desktop
|
||||
- prep-build-mmi
|
||||
- prep-build-flask
|
||||
- all-tests-pass
|
||||
- job-publish-storybook:
|
||||
@ -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:
|
||||
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user