Merge branch 'testing'

This commit is contained in:
Tamius Han 2019-12-04 18:02:38 +01:00
commit 96d7456ea1

View File

@ -13,21 +13,33 @@
# AMO_API_KEY needed if you want to sign and push extension to addons.mozilla.org
# AMO_API_SECRET -||-
echo "============= STARTING BUILD SCRIPT ============="
pwd
whoami
echo " ::: env dump"
echo " -> FORCE_BUILD: $FORCE_BUILD"
echo " -> BUILD_SCRIPT: $BUILD_SCRIPT"
echo " -> RELEASE_SERVER: $RELEASE_SERVER"
echo " -> RELEASE_DIRECTORY: $RELEASE_DIRECTORY"
echo " -> BUILD_CHANNEL_DIRECTORY: $BUILD_CHANNEL_DIRECTORY"
# don't build if nothing has changed, unless overriden via env variable
if [ ! -z "$GIT_COMMIT" && ! -z "$GIT_PREVIOUS_COMMIT" ] ; then
if [ "$GIT_COMMIT" == "$GIT_PREVIOUS_COMMIT" ] ; then
if [ $FORCE_BUILD == "true" ] ; then
echo "--------------------------------------------"
echo " Nothing has changed. Aborting build."
echo "--------------------------------------------"
exit 0;
if [ ! -z "$GIT_COMMIT" ] ; then
if [ ! -z "$GIT_PREVIOUS_COMMIT" ] ; then
if [ "$GIT_COMMIT" == "$GIT_PREVIOUS_COMMIT" ] ; then
if [ $FORCE_BUILD == "true" ] ; then
echo "--------------------------------------------"
echo " Nothing has changed. Aborting build."
echo "--------------------------------------------"
exit 0;
fi
fi
fi
fi
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
#
# build firefox
@ -70,5 +82,5 @@ scp -r ./build-zip/* "ultrawidify-uploader@${RELEASE_SERVER}:${RELEASE_DIRECTORY
######################################
echo "--------------------------------------------"
echo " Nothing has changed. Aborting build."
echo " BUILD FINISHED SUCCESSFULLY"
echo "--------------------------------------------"