mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
Add beta and Flask builds to CI (#12572)
The beta and Flask builds are now built on CI and included in the metamask bot comment alongside the main builds. The same sourcemap linter and mozilla linter used for the prod builds is also run on the beta and Flask builds. Closes #12426
This commit is contained in:
parent
10bec23ee9
commit
d717a804be
@ -39,6 +39,12 @@ workflows:
|
||||
- prep-build:
|
||||
requires:
|
||||
- prep-deps
|
||||
- prep-build-beta:
|
||||
requires:
|
||||
- prep-deps
|
||||
- prep-build-flask:
|
||||
requires:
|
||||
- prep-deps
|
||||
- prep-build-test:
|
||||
requires:
|
||||
- prep-deps
|
||||
@ -79,10 +85,24 @@ workflows:
|
||||
- validate-source-maps:
|
||||
requires:
|
||||
- prep-build
|
||||
- validate-source-maps-beta:
|
||||
requires:
|
||||
- prep-build-beta
|
||||
- validate-source-maps-flask:
|
||||
requires:
|
||||
- prep-build-flask
|
||||
- test-mozilla-lint:
|
||||
requires:
|
||||
- prep-deps
|
||||
- prep-build
|
||||
- test-mozilla-lint-beta:
|
||||
requires:
|
||||
- prep-deps
|
||||
- prep-build-beta
|
||||
- test-mozilla-lint-flask:
|
||||
requires:
|
||||
- prep-deps
|
||||
- prep-build-flask
|
||||
- all-tests-pass:
|
||||
requires:
|
||||
- validate-lavamoat-config
|
||||
@ -93,7 +113,11 @@ workflows:
|
||||
- test-unit
|
||||
- test-unit-global
|
||||
- validate-source-maps
|
||||
- validate-source-maps-beta
|
||||
- validate-source-maps-flask
|
||||
- test-mozilla-lint
|
||||
- test-mozilla-lint-beta
|
||||
- test-mozilla-lint-flask
|
||||
- test-e2e-chrome
|
||||
- test-e2e-firefox
|
||||
- test-e2e-chrome-metrics
|
||||
@ -105,6 +129,8 @@ workflows:
|
||||
requires:
|
||||
- prep-deps
|
||||
- prep-build
|
||||
- prep-build-beta
|
||||
- prep-build-flask
|
||||
- prep-build-storybook
|
||||
- benchmark
|
||||
- all-tests-pass
|
||||
@ -201,6 +227,54 @@ jobs:
|
||||
- dist
|
||||
- builds
|
||||
|
||||
prep-build-beta:
|
||||
executor: node-browsers-medium-plus
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: build:dist
|
||||
command: yarn build --build-type beta prod
|
||||
- run:
|
||||
name: build:debug
|
||||
command: find dist/ -type f -exec md5sum {} \; | sort -k 2
|
||||
- run:
|
||||
name: Move beta build to 'dist-beta' to avoid conflict with production build
|
||||
command: mv ./dist ./dist-beta
|
||||
- run:
|
||||
name: Move beta zips to 'builds-beta' to avoid conflict with production build
|
||||
command: mv ./builds ./builds-beta
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
- dist-beta
|
||||
- builds-beta
|
||||
|
||||
prep-build-flask:
|
||||
executor: node-browsers-medium-plus
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: build:dist
|
||||
command: yarn build --build-type flask prod
|
||||
- run:
|
||||
name: build:debug
|
||||
command: find dist/ -type f -exec md5sum {} \; | sort -k 2
|
||||
- run:
|
||||
name: Move flask build to 'dist-flask' to avoid conflict with production build
|
||||
command: mv ./dist ./dist-flask
|
||||
- run:
|
||||
name: Move flask zips to 'builds-flask' to avoid conflict with production build
|
||||
command: mv ./builds ./builds-flask
|
||||
- persist_to_workspace:
|
||||
root: .
|
||||
paths:
|
||||
- dist-flask
|
||||
- builds-flask
|
||||
|
||||
prep-build-test:
|
||||
executor: node-browsers-medium-plus
|
||||
steps:
|
||||
@ -482,9 +556,21 @@ jobs:
|
||||
- store_artifacts:
|
||||
path: dist/sourcemaps
|
||||
destination: builds/sourcemaps
|
||||
- store_artifacts:
|
||||
path: dist-beta/sourcemaps
|
||||
destination: builds-beta/sourcemaps
|
||||
- store_artifacts:
|
||||
path: dist-flask/sourcemaps
|
||||
destination: builds-flask/sourcemaps
|
||||
- store_artifacts:
|
||||
path: builds
|
||||
destination: builds
|
||||
- store_artifacts:
|
||||
path: builds-beta
|
||||
destination: builds-beta
|
||||
- store_artifacts:
|
||||
path: builds-flask
|
||||
destination: builds-flask
|
||||
- store_artifacts:
|
||||
path: coverage
|
||||
destination: coverage
|
||||
@ -577,6 +663,38 @@ jobs:
|
||||
name: Validate source maps
|
||||
command: yarn validate-source-maps
|
||||
|
||||
validate-source-maps-beta:
|
||||
executor: node-browsers
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: Move beta build to dist
|
||||
command: mv ./dist-beta ./dist
|
||||
- run:
|
||||
name: Move beta zips to builds
|
||||
command: mv ./builds-beta ./builds
|
||||
- run:
|
||||
name: Validate source maps
|
||||
command: yarn validate-source-maps
|
||||
|
||||
validate-source-maps-flask:
|
||||
executor: node-browsers
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: Move flask build to dist
|
||||
command: mv ./dist-flask ./dist
|
||||
- run:
|
||||
name: Move flask zips to builds
|
||||
command: mv ./builds-flask ./builds
|
||||
- run:
|
||||
name: Validate source maps
|
||||
command: yarn validate-source-maps
|
||||
|
||||
test-mozilla-lint:
|
||||
executor: node-browsers
|
||||
steps:
|
||||
@ -587,6 +705,38 @@ jobs:
|
||||
name: test:mozilla-lint
|
||||
command: NODE_OPTIONS=--max_old_space_size=3072 yarn mozilla-lint
|
||||
|
||||
test-mozilla-lint-beta:
|
||||
executor: node-browsers
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: Move beta build to dist
|
||||
command: mv ./dist-beta ./dist
|
||||
- run:
|
||||
name: Move beta zips to builds
|
||||
command: mv ./builds-beta ./builds
|
||||
- run:
|
||||
name: test:mozilla-lint
|
||||
command: NODE_OPTIONS=--max_old_space_size=3072 yarn mozilla-lint
|
||||
|
||||
test-mozilla-lint-flask:
|
||||
executor: node-browsers
|
||||
steps:
|
||||
- checkout
|
||||
- attach_workspace:
|
||||
at: .
|
||||
- run:
|
||||
name: Move flask build to dist
|
||||
command: mv ./dist-flask ./dist
|
||||
- run:
|
||||
name: Move flask zips to builds
|
||||
command: mv ./builds-flask ./builds
|
||||
- run:
|
||||
name: test:mozilla-lint
|
||||
command: NODE_OPTIONS=--max_old_space_size=3072 yarn mozilla-lint
|
||||
|
||||
all-tests-pass:
|
||||
executor: node-browsers
|
||||
steps:
|
||||
|
@ -39,6 +39,18 @@ async function start() {
|
||||
return `<a href="${url}">${platform}</a>`;
|
||||
})
|
||||
.join(', ');
|
||||
const betaBuildLinks = platforms
|
||||
.map((platform) => {
|
||||
const url = `${BUILD_LINK_BASE}/builds-beta/metamask-beta-${platform}-${VERSION}.zip`;
|
||||
return `<a href="${url}">${platform}</a>`;
|
||||
})
|
||||
.join(', ');
|
||||
const flaskBuildLinks = platforms
|
||||
.map((platform) => {
|
||||
const url = `${BUILD_LINK_BASE}/builds-flask/metamask-flask-${platform}-${VERSION}.zip`;
|
||||
return `<a href="${url}">${platform}</a>`;
|
||||
})
|
||||
.join(', ');
|
||||
|
||||
// links to bundle browser builds
|
||||
const bundles = {};
|
||||
@ -86,6 +98,8 @@ async function start() {
|
||||
|
||||
const contentRows = [
|
||||
`builds: ${buildLinks}`,
|
||||
`builds (beta): ${betaBuildLinks}`,
|
||||
`builds (flask): ${flaskBuildLinks}`,
|
||||
`build viz: ${depVizLink}`,
|
||||
`code coverage: ${coverageLink}`,
|
||||
`storybook: ${storybookLink}`,
|
||||
|
Loading…
Reference in New Issue
Block a user