Raise memory limits in build scripts. Also build edge version on the CI
This commit is contained in:
parent
4e407e2cf8
commit
50719113b1
@ -37,6 +37,9 @@ if [ ! -z "$GIT_COMMIT" ] ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# let's raise RAM limit for npm command globally
|
||||||
|
alias npm='node --max_old_space_size=2048 /usr/bin/npm'
|
||||||
|
|
||||||
npm ci
|
npm ci
|
||||||
|
|
||||||
rm -rf ./dist-zip || true # no big deal if ./dist-zip doesn't exist
|
rm -rf ./dist-zip || true # no big deal if ./dist-zip doesn't exist
|
||||||
@ -46,7 +49,7 @@ mkdir dist-zip # create it back
|
|||||||
# build firefox
|
# build firefox
|
||||||
#
|
#
|
||||||
npm run "${BUILD_SCRIPT}"
|
npm run "${BUILD_SCRIPT}"
|
||||||
node scripts/build-zip.js ff nightly
|
node --max-old-space-size=2048 scripts/build-zip.js ff nightly
|
||||||
# if [ ! -z "${AMO_API_KEY}" ] ; then
|
# if [ ! -z "${AMO_API_KEY}" ] ; then
|
||||||
# if [ ! -z "${AMO_API_SECRET}" ] ; then
|
# if [ ! -z "${AMO_API_SECRET}" ] ; then
|
||||||
# web-ext sign --source-dir ./dist --api-key "${AMO_API_KEY}" --api-secret "${AMO_API_SECRET}"
|
# web-ext sign --source-dir ./dist --api-key "${AMO_API_KEY}" --api-secret "${AMO_API_SECRET}"
|
||||||
@ -57,12 +60,18 @@ node scripts/build-zip.js ff nightly
|
|||||||
# build chrome
|
# build chrome
|
||||||
#
|
#
|
||||||
npm run "${BUILD_SCRIPT}-chrome"
|
npm run "${BUILD_SCRIPT}-chrome"
|
||||||
node scripts/build-zip.js chrome nightly
|
node --max-old-space-size=2048 scripts/build-zip.js chrome nightly
|
||||||
|
|
||||||
#
|
#
|
||||||
#./scripts/build-crx.sh
|
#./scripts/build-crx.sh
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# build edge
|
||||||
|
#
|
||||||
|
npm run "${BUILD_SCRIPT}-edge"
|
||||||
|
node --max-old-space-size=2048 scripts/build-zip.js chrome nightly
|
||||||
|
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
# UPLOAD TO WEB SERVER
|
# UPLOAD TO WEB SERVER
|
||||||
######################################
|
######################################
|
||||||
@ -76,7 +85,6 @@ echo "Uploading to server ..."
|
|||||||
scp -i ~/.ssh/id_rsa -r ./dist-zip/* "ultrawidify-uploader@${RELEASE_SERVER}:${RELEASE_DIRECTORY}${BUILD_CHANNEL_DIRECTORY}"
|
scp -i ~/.ssh/id_rsa -r ./dist-zip/* "ultrawidify-uploader@${RELEASE_SERVER}:${RELEASE_DIRECTORY}${BUILD_CHANNEL_DIRECTORY}"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
######################################
|
######################################
|
||||||
# Build finished message
|
# Build finished message
|
||||||
######################################
|
######################################
|
||||||
|
Loading…
Reference in New Issue
Block a user