testing/geckodriver/ci.sh
author Jared Wein <jwein@mozilla.com>
Tue, 14 May 2019 20:05:47 +0000
changeset 532675 3cec13612ee64b570b834e0ec7b68806cc759d77
parent 407700 77e514c6f1e679fa22973bbecb77ed931ccae6d9
permissions -rw-r--r--
Bug 1549809 - Stub out LoginFilter custom element. r=MattN,Pike Differential Revision: https://phabricator.services.mozilla.com/D30753

set -ex

if [ ! -z "$DOCKER_IMAGE" ]
then
	tag="$DOCKER_IMAGE/latest"
	docker build $DOCKER_IMAGE -t $tag
	docker run \
	    	-e USER="$USER" \
	    	-e TARGET="$TARGET" \
	    	-e TOOLCHAIN="$TOOLCHAIN" \
	    	-e DOCKER_IMAGE="$DOCKER_IMAGE" \
	    	-e NAME="$NAME" \
	    	-e TRAVIS_TAG="$TRAVIS_TAG" \
	    	-e USER_ID=$(id -u) \
	    	-e GROUP_ID=$(id -g) \
		-v $PWD:/mnt/host \
		-i $tag \
		bash -s -- < build.sh
else
	bash build.sh
fi