install toolchain in docker
This commit is contained in:
parent
8f85ab545d
commit
d9deff7103
@ -62,17 +62,8 @@ matrix:
|
|||||||
- qemu-user-static
|
- qemu-user-static
|
||||||
- env: TARGET=powerpc64le-unknown-linux-gnu
|
- env: TARGET=powerpc64le-unknown-linux-gnu
|
||||||
os: linux
|
os: linux
|
||||||
dist: trusty
|
|
||||||
services: docker
|
services: docker
|
||||||
sudo: required
|
sudo: required
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- binfmt-support
|
|
||||||
- gcc-powerpc64le-linux-gnu
|
|
||||||
- libc6-ppc64el-cross
|
|
||||||
- libc6-dev-ppc64el-cross
|
|
||||||
- qemu-user
|
|
||||||
- env: TARGET=x86_64-apple-darwin
|
- env: TARGET=x86_64-apple-darwin
|
||||||
os: osx
|
os: osx
|
||||||
- env: TARGET=x86_64-unknown-linux-gnu
|
- env: TARGET=x86_64-unknown-linux-gnu
|
||||||
|
@ -25,7 +25,11 @@ install_c_toolchain() {
|
|||||||
case $TARGET in
|
case $TARGET in
|
||||||
aarch64-unknown-linux-gnu)
|
aarch64-unknown-linux-gnu)
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get install -y --no-install-recommends \
|
||||||
gcc-aarch64-linux-gnu libc6-arm64-cross libc6-dev-arm64-cross
|
gcc-aarch64-linux-gnu libc6-dev-arm64-cross
|
||||||
|
;;
|
||||||
|
powerpc64-unknown-linux-gnu)
|
||||||
|
sudo apt-get install -y --no-install-recommends \
|
||||||
|
gcc-powerpc64le-linux-gnu libc6-dev-ppc64le-cross
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
;;
|
;;
|
||||||
|
@ -36,9 +36,9 @@ main() {
|
|||||||
docker run \
|
docker run \
|
||||||
-e TARGET=$TARGET \
|
-e TARGET=$TARGET \
|
||||||
-e TRAVIS_OS_NAME=$TRAVIS_OS_NAME \
|
-e TRAVIS_OS_NAME=$TRAVIS_OS_NAME \
|
||||||
-v $(pwd)/ci:/mnt \
|
-v $(pwd):/mnt \
|
||||||
ubuntu:16.04 \
|
ubuntu:16.04 \
|
||||||
sh -c "bash /mnt/install.sh; bash /mnt/script.sh"
|
sh -c "cd /mnt; bash ci/install.sh; bash ci/script.sh"
|
||||||
else
|
else
|
||||||
build
|
build
|
||||||
run_tests
|
run_tests
|
||||||
|
Loading…
Reference in New Issue
Block a user