testing/docker/tester-device/build.sh
author Chris Manchester <cmanchester@mozilla.com>
Mon, 20 Jun 2016 16:02:01 -0700
changeset 302133 2f946ab553f7789fa70cde959d30a3513dfda1f2
parent 279779 d4aa0196d5aa63bfab2b04d08b45439ac13e2230
permissions -rwxr-xr-x
Bug 1279369 - Move --enable-debug, MOZ_DEBUG_FLAGS, and --enable-debug-symbols to Python configure. r=glandium Setting MOZ_DEBUG_SYMBOLS as a define was not moved, as this value is not checked, and exporting MOZ_DEBUG_SYMBOLS was not moved, as this would only impact nspr, and we're no longer using the nspr build system. MozReview-Commit-ID: EvBTunhxcsr

#! /bin/bash -ve

while getopts "t:g:" arg; do
  case $arg in
    t)
      TAG=$OPTARG
      ;;
    g)
      GAIA_TESTVARS=$OPTARG
      ;;
  esac
done

pushd $(dirname $0)

test $TAG
test -f "$GAIA_TESTVARS"

mkdir -p data
cp $GAIA_TESTVARS data/gaia_testvars.json

docker build -t $TAG .
rm -f data/gaia_testvars.json