Skip to content

Commit

Permalink
CI: test mips-unknown-linux-gnu
Browse files Browse the repository at this point in the history
cc #3
  • Loading branch information
Jorge Aparicio committed Aug 8, 2016
1 parent 986c4aa commit 32f1b21
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ matrix:
sudo: required
addons:
apt:
packages:
packages: &qemu
- binfmt-support
- qemu-user-static
- env: TARGET=arm-unknown-linux-gnueabi
Expand Down Expand Up @@ -48,6 +48,12 @@ matrix:
apt:
packages:
- gcc-multilib
- env: TARGET=mips-unknown-linux-gnu
os: linux
sudo: required
addons:
apt:
packages: *qemu
- env: TARGET=x86_64-apple-darwin
os: osx
- env: TARGET=x86_64-unknown-linux-gnu
Expand Down
4 changes: 4 additions & 0 deletions ci/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ case $TARGET in
export PREFIX=arm-linux-gnueabihf-
export QEMU_LD_PREFIX=/usr/arm-linux-gnueabihf
;;
mips-unknown-linux-gnu)
export PREFIX=mips-unknown-linux-gnu-
export QEMU_LD_PREFIX=/usr/mips-unknown-linux-gnu
;;
esac
6 changes: 6 additions & 0 deletions ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@ install_binutils() {
}

install_c_toolchain() {
local dropbox_url=https://www.dropbox.com/sh/y9w7l5fk57vyikt/AABhZePp6j827VielYZvSa4Pa

case $TARGET in
aarch64-unknown-linux-gnu)
sudo apt-get install -y --no-install-recommends \
gcc-aarch64-linux-gnu libc6-arm64-cross libc6-dev-arm64-cross
;;
mips-unknown-linux-gnu)
cd /usr
curl -sL $dropbox_url/gcc-mips-linux-gnu.tar.xz?dl=1 | tar -xJ
;;
*)
;;
esac
Expand Down

0 comments on commit 32f1b21

Please sign in to comment.