use docker
This commit is contained in:
parent
b0e5d13e2f
commit
8c029ed1b4
|
@ -44,11 +44,8 @@ matrix:
|
||||||
os: osx
|
os: osx
|
||||||
- env: TARGET=i586-unknown-linux-gnu
|
- env: TARGET=i586-unknown-linux-gnu
|
||||||
os: linux
|
os: linux
|
||||||
dist: trusty
|
services: docker
|
||||||
addons:
|
sudo: required
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- gcc-multilib
|
|
||||||
- env: TARGET=i686-unknown-linux-gnu
|
- env: TARGET=i686-unknown-linux-gnu
|
||||||
os: linux
|
os: linux
|
||||||
addons:
|
addons:
|
||||||
|
|
|
@ -30,10 +30,15 @@ case $TARGET in
|
||||||
export PREFIX=arm-linux-gnueabihf-
|
export PREFIX=arm-linux-gnueabihf-
|
||||||
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf
|
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf
|
||||||
;;
|
;;
|
||||||
|
i586-unknown-linux-gnu)
|
||||||
|
# NOTE $DOCKER values: 'y' (yes, call docker), 'i' (inside a docker container) or 'n' ("no)
|
||||||
|
if [[ -z $DOCKER ]]; then
|
||||||
|
export DOCKER=y
|
||||||
|
fi
|
||||||
|
;;
|
||||||
mips-unknown-linux-gnu)
|
mips-unknown-linux-gnu)
|
||||||
# See #2
|
# See #2
|
||||||
export DONT_RUN_TESTS=y
|
export DONT_RUN_TESTS=y
|
||||||
# NOTE $DOCKER values: 'y' (yes, call docker), 'i' (inside a docker container) or 'n' ("no)
|
|
||||||
if [[ -z $DOCKER ]]; then
|
if [[ -z $DOCKER ]]; then
|
||||||
export DOCKER=y
|
export DOCKER=y
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -38,6 +38,10 @@ install_c_toolchain() {
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
||||||
;;
|
;;
|
||||||
|
i586-unknown-linux-gnu)
|
||||||
|
apt-get install -y --no-install-recommends \
|
||||||
|
gcc libc6-dev-i386
|
||||||
|
;;
|
||||||
mips-unknown-linux-gnu)
|
mips-unknown-linux-gnu)
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
gcc-mips-linux-gnu libc6-dev-mips-cross
|
gcc-mips-linux-gnu libc6-dev-mips-cross
|
||||||
|
|
Loading…
Reference in New Issue