mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
Ensure that firefox linting of beta builds only happens on beta build… (#18403)
* Ensure that firefox linting of beta builds only happens on beta build commits * Fix script
This commit is contained in:
parent
3af0362f2e
commit
04716e87f4
@ -1157,14 +1157,9 @@ jobs:
|
||||
- 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
|
||||
name: Lint beta for firefox
|
||||
command: |
|
||||
.circleci/scripts/mozilla-lint-beta.sh
|
||||
|
||||
test-mozilla-lint-desktop:
|
||||
executor: node-browsers
|
||||
|
27
.circleci/scripts/mozilla-lint-beta.sh
Normal file
27
.circleci/scripts/mozilla-lint-beta.sh
Normal file
@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -u
|
||||
set -o pipefail
|
||||
|
||||
current_commit_msg=$(git show -s --format='%s' HEAD)
|
||||
|
||||
if [[ $current_commit_msg =~ Version[[:space:]](v[[:digit:]]+.[[:digit:]]+.[[:digit:]]+[-]beta.[[:digit:]]) ]]
|
||||
then
|
||||
# filter the commit message like Version v10.24.1-beta.1
|
||||
printf '%s\n' "Linting beta builds for firefox"
|
||||
# Move beta build to dist
|
||||
mv ./dist-beta ./dist
|
||||
# Move beta zips to builds
|
||||
mv ./builds-beta ./builds
|
||||
# test:mozilla-lint
|
||||
export NODE_OPTIONS='--max_old_space_size=3072'
|
||||
yarn mozilla-lint
|
||||
else
|
||||
printf '%s\n' 'Commit message does not match commit message for beta pattern; skipping linting for firefox'
|
||||
mkdir dist
|
||||
mkdir builds
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user