-
Notifications
You must be signed in to change notification settings - Fork 323
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' of github.com:mozilla/multi-account-containers in…
…to backup-restore-containers
- Loading branch information
Showing
324 changed files
with
3,951 additions
and
972 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,32 @@ | ||
name: Builds | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- production | ||
pull_request: | ||
branches: | ||
- main | ||
- production | ||
schedule: | ||
- cron: '0 2 * * *' # Daily at 2AM UTC | ||
|
||
jobs: | ||
builds: | ||
name: Builds | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Create the package | ||
shell: bash | ||
run: | | ||
./bin/build-addon.sh nightly.xpi | ||
- name: Uploading | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{matrix.config.name}} Build | ||
path: src/web-ext-artifacts |
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,5 @@ | ||
[submodule "src/_locales"] | ||
branch = main | ||
path = src/_locales | ||
url = https://github.com/mozilla-l10n/multi-account-containers-l10n.git | ||
ignore=all |
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
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
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,35 @@ | ||
#!/bin/bash | ||
|
||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
# addons-linter is not happy to see a `.github` folder in src/_locales. | ||
# We need to do an horrible hack to run the test. | ||
|
||
. $(dirname $0)/commons.sh | ||
|
||
TMPDIR=/tmp/MAC_addonsLinter | ||
|
||
print Y "Update the submodules..." | ||
git submodule init || die | ||
git submodule update --remote --depth 1 src/_locales || die | ||
|
||
printn Y "Removing previous execution data... " | ||
rm -rf $TMPDIR || die | ||
print G "done." | ||
|
||
printn Y "Creating a tmp folder ($TMPDIR)... " | ||
mkdir $TMPDIR || die | ||
print G "done." | ||
|
||
printn Y "Copying data... " | ||
cp -r src $TMPDIR || die | ||
print G "done." | ||
|
||
printn Y "Removing the github folder... " | ||
rm -rf $TMPDIR/src/_locales/.github || die | ||
print G "done." | ||
|
||
print Y "Running the test..." | ||
$(npm bin)/addons-linter $TMPDIR/src || die |
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 |
---|---|---|
@@ -1 +1,26 @@ | ||
npm install && npm run deploy | ||
#!/bin/bash | ||
|
||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
. $(dirname $0)/commons.sh | ||
|
||
print Y "Update the submodules..." | ||
git submodule init || die | ||
git submodule update --remote --depth 1 src/_locales || die | ||
|
||
print Y "Installing dependencies..." | ||
npm install --legacy-peer-deps || die | ||
|
||
print Y "Running tests..." | ||
npm test | ||
|
||
print Y "Creating the final package..." | ||
cd src || die | ||
|
||
if [[ $# -gt 0 ]]; then | ||
EXTRA_PARAMS="--filename $1" | ||
fi | ||
|
||
$(npm bin)/web-ext build --overwrite-dest $EXTRA_PARAMS || die |
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 @@ | ||
#!/bin/bash | ||
|
||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
printv() { | ||
if [ -t 1 ]; then | ||
NCOLORS=$(tput colors) | ||
|
||
if test -n "$NCOLORS" && test "$NCOLORS" -ge 8; then | ||
NORMAL="$(tput sgr0)" | ||
RED="$(tput setaf 1)" | ||
GREEN="$(tput setaf 2)" | ||
YELLOW="$(tput setaf 3)" | ||
fi | ||
fi | ||
|
||
if [[ $2 = 'G' ]]; then | ||
# shellcheck disable=SC2086 | ||
echo $1 -e "${GREEN}$3${NORMAL}" | ||
elif [[ $2 = 'Y' ]]; then | ||
# shellcheck disable=SC2086 | ||
echo $1 -e "${YELLOW}$3${NORMAL}" | ||
elif [[ $2 = 'N' ]]; then | ||
# shellcheck disable=SC2086 | ||
echo $1 -e "$3" | ||
else | ||
# shellcheck disable=SC2086 | ||
echo $1 -e "${RED}$3${NORMAL}" | ||
fi | ||
} | ||
|
||
print() { | ||
printv '' "$1" "$2" | ||
} | ||
|
||
printn() { | ||
printv "-n" "$1" "$2" | ||
} | ||
|
||
error() { | ||
printv '' R "$1" | ||
} | ||
|
||
die() { | ||
if [[ "$1" ]]; then | ||
error "$1" | ||
else | ||
error Failed | ||
fi | ||
|
||
exit 1 | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.