gecko-dev/testing/taskcluster/scripts/phone-builder/build-phone.sh
Wander Lairson Costa c43a4bf584 Backout "Bug 1144808 part 2: Harden phone-builder image."
Things just got too hard for B2G people to change build scripts, so we
are backing out this.

--HG--
extra : commitid : 16CKTLSAi3B
2015-10-28 11:17:58 -02:00

30 lines
733 B
Bash
Executable File

#! /bin/bash -vex
. pre-build.sh
if [ $TARGET == "aries" -o $TARGET == "shinano" ]; then
# caching objects might be dangerous for some devices (aka aries)
rm -rf $gecko_objdir
rm -rf $WORKSPACE/B2G/out
fi
MOZHARNESS_CONFIG=${MOZHARNESS_CONFIG:=b2g/taskcluster-phone.py}
rm -rf $WORKSPACE/B2G/upload/
$WORKSPACE/gecko/testing/mozharness/scripts/b2g_build.py \
--config $MOZHARNESS_CONFIG \
"$debug_flag" \
--disable-mock \
--variant=$VARIANT \
--work-dir=$WORKSPACE/B2G \
--gaia-languages-file locales/languages_all.json \
--log-level=debug \
--target=$TARGET \
--b2g-config-dir=$TARGET \
--checkout-revision=$GECKO_HEAD_REV \
--repo=$WORKSPACE/gecko \
--gecko-objdir=$gecko_objdir
. post-build.sh