mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
f6a6377949
By setting up our own container we can share the build.sh file (almost) fully between containerised- and bare metal builds. The apt dependencies needed are listed in i686-trusty/Dockerfile. We build i686-pc-windows-gnu in a custom container because the Ubuntu trusty VM provided by Travis does not have a sufficiently modern gcc compiler. Source-Repo: https://github.com/mozilla/geckodriver Source-Revision: b2274b8054ac9b7eb829267a61fa4e6b138aabc2 --HG-- extra : rebase_source : a1d510b4f0a6e4e6d859b50a97617f1595d23903
22 lines
444 B
Bash
22 lines
444 B
Bash
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
|