-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into MultipleNotificationsPerf
- Loading branch information
Showing
911 changed files
with
30,582 additions
and
21,357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
#!/usr/bin/env bash | ||
|
||
export CIRCLE_BRANCH="" | ||
export CONTENTFUL_ACCESS_SPACE_ID="" | ||
export CONTENTFUL_ACCESS_TOKEN="" | ||
export ETHERSCAN_API_KEY="" | ||
export FIREBASE_API_KEY="" | ||
export FIREBASE_APP_ID="" | ||
export FIREBASE_AUTH_DOMAIN="" | ||
export FIREBASE_MEASUREMENT_ID="" | ||
export FIREBASE_MESSAGING_SENDER_ID="" | ||
export FIREBASE_PROJECT_ID="" | ||
export FIREBASE_STORAGE_BUCKET="" | ||
export INFURA_BETA_PROJECT_ID="" | ||
export INFURA_FLASK_PROJECT_ID="" | ||
export INFURA_MMI_PROJECT_ID="" | ||
export INFURA_PROD_PROJECT_ID="" | ||
export INFURA_PROJECT_ID="" | ||
export MMI_CONFIGURATION_SERVICE_URL="" | ||
export PUBNUB_PUB_KEY="" | ||
export SEGMENT_BETA_WRITE_KEY="" | ||
export SEGMENT_FLASK_WRITE_KEY="" | ||
export SEGMENT_MMI_WRITE_KEY="" | ||
export SEGMENT_PROD_LEGACY_WRITE_KEY="" | ||
export SEGMENT_PROD_WRITE_KEY="" | ||
export SEGMENT_WRITE_KEY="" | ||
export ANALYTICS_DATA_DELETION_SOURCE_ID="" | ||
export ANALYTICS_DATA_DELETION_ENDPOINT="" | ||
export SENTRY_AUTH_TOKEN="" | ||
export SENTRY_DSN="" | ||
export SENTRY_MMI_DSN="" | ||
export SENTRY_DSN_DEV="" | ||
export VAPID_KEY="" | ||
export TZ="UTC" | ||
export ENABLE_MV3="false" | ||
|
||
# 1. Download and install nvm: | ||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/179d45050be0a71fd57591b0ed8aedf9b177ba10/install.sh | bash | ||
|
||
# 2. Activate nvm in lieu of restarting the shell | ||
# shellcheck disable=SC1091 | ||
\. "${HOME}/.nvm/nvm.sh" | ||
|
||
# 3. Download and install Node.js | ||
nvm install | ||
|
||
# 4. Enable corepack to install yarn | ||
corepack enable | ||
|
||
# 5. Install dependencies | ||
yarn | ||
|
||
# 6. Run the production build command | ||
yarn build prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -o pipefail | ||
|
||
if [[ "${CI:-}" != 'true' ]] | ||
then | ||
printf '%s\n' 'CI environment variable must be set to true' | ||
exit 1 | ||
fi | ||
|
||
if [[ "${CIRCLECI:-}" != 'true' ]] | ||
then | ||
printf '%s\n' 'CIRCLECI environment variable must be set to true' | ||
exit 1 | ||
fi | ||
|
||
git config --global user.name "MetaMask Bot" | ||
git config --global user.email [email protected] | ||
version=$(git show -s --format='%s' HEAD | grep -Eo 'v[0-9]+\.[0-9]+\.[0-9]+') | ||
|
||
git clone [email protected]:MetaMask/firefox-bundle-script.git | ||
cd firefox-bundle-script | ||
git checkout release | ||
cp ../.circleci/scripts/bundle.sh ./bundle.sh | ||
|
||
# sed works differently on macOS and Linux | ||
# macOS requires an empty string argument for -i | ||
# so we need to handle this case based on the OS | ||
if sed --version 2>/dev/null | grep -q GNU; then | ||
SED_OPTS=(-i) | ||
else | ||
SED_OPTS=(-i '') | ||
fi | ||
|
||
# Insert exported environment variables | ||
awk -F '=' '/^\s*export / {gsub(/^export /, ""); print $1}' bundle.sh | while read -r var; do | ||
if [[ -n "${!var}" ]]; then | ||
sed "${SED_OPTS[@]}" "s|^\(\s*export $var=\).*|\1\"${!var}\"|" bundle.sh | ||
fi | ||
done | ||
|
||
git add bundle.sh | ||
git commit --allow-empty -m "${version}" | ||
git push origin release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.