testing/geckodriver/ci.sh
author Chris Peterson <cpeterson@mozilla.com>
Thu, 08 Feb 2018 21:22:43 -0800
changeset 404325 b7634d84216c16379ff045db5c155894457506fb
parent 359605 77e514c6f1e679fa22973bbecb77ed931ccae6d9
permissions -rw-r--r--
Bug 1436263 - Part 3: Remove `virtual` from final virtual function declarations. r=froydnj MozReview-Commit-ID: 8pjYjEvQF42

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