don't recursively call docker
This commit is contained in:
parent
1904e17b91
commit
95eb812d38
|
@ -62,8 +62,7 @@ matrix:
|
||||||
- qemu-user-static
|
- qemu-user-static
|
||||||
- env: TARGET=powerpc64le-unknown-linux-gnu
|
- env: TARGET=powerpc64le-unknown-linux-gnu
|
||||||
os: linux
|
os: linux
|
||||||
services:
|
services: docker
|
||||||
- docker
|
|
||||||
sudo: required
|
sudo: required
|
||||||
- env: TARGET=x86_64-apple-darwin
|
- env: TARGET=x86_64-apple-darwin
|
||||||
os: osx
|
os: osx
|
||||||
|
|
|
@ -29,7 +29,9 @@ case $TARGET in
|
||||||
export QEMU_LD_PREFIX=/usr/powerpc-linux-gnu
|
export QEMU_LD_PREFIX=/usr/powerpc-linux-gnu
|
||||||
;;
|
;;
|
||||||
powerpc64le-unknown-linux-gnu)
|
powerpc64le-unknown-linux-gnu)
|
||||||
export DOCKER=y
|
if [[ -z $DOCKER ]]; then
|
||||||
|
export DOCKER=y
|
||||||
|
fi
|
||||||
export PREFIX=powerpc64le-linux-gnu-
|
export PREFIX=powerpc64le-linux-gnu-
|
||||||
export QEMU=qemu-ppc64le
|
export QEMU=qemu-ppc64le
|
||||||
export QEMU_LD_PREFIX=/usr/powerpc64le-linux-gnu
|
export QEMU_LD_PREFIX=/usr/powerpc64le-linux-gnu
|
||||||
|
|
|
@ -32,8 +32,9 @@ inspect() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
if [[ $DOCKER ]]; then
|
if [[ $DOCKER == "y" ]]; then
|
||||||
docker run \
|
docker run \
|
||||||
|
-e DOCKER=n \
|
||||||
-e TARGET=$TARGET \
|
-e TARGET=$TARGET \
|
||||||
-e TRAVIS_OS_NAME=$TRAVIS_OS_NAME \
|
-e TRAVIS_OS_NAME=$TRAVIS_OS_NAME \
|
||||||
-v $(pwd):/mnt \
|
-v $(pwd):/mnt \
|
||||||
|
@ -44,7 +45,6 @@ main() {
|
||||||
run_tests
|
run_tests
|
||||||
inspect
|
inspect
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
Loading…
Reference in New Issue