From 65c0e2b58d965af82c608b560eb9e4fb64008fe8 Mon Sep 17 00:00:00 2001 From: herrernst Date: Tue, 9 Aug 2016 21:46:52 +0200 Subject: [PATCH] travis: also test cross-compilation for arm --- .travis.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index c0e8fa70..5b8ab9ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,15 @@ addons: packages: - libprotoc-dev - portaudio19-dev - - libpulse-dev + - libpulse-dev + - gcc-arm-linux-gnueabihf + - libc6-dev-armhf-cross + +before_script: + - mkdir -p ~/.cargo + - echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config + - echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config + - sh ~/rust-installer/rustup.sh --prefix=$(rustc --print sysroot) -y --disable-sudo --add-target=armv7-unknown-linux-gnueabihf script: - cargo build --no-default-features --features "with-syntex" @@ -24,6 +32,7 @@ script: - cargo build --no-default-features --features "with-syntex facebook" - cargo build --no-default-features --features "with-syntex portaudio-backend" - cargo build --no-default-features --features "with-syntex pulseaudio-backend" + - cargo build --no-default-features --features "with-syntex" --target armv7-unknown-linux-gnueabihf # Building without syntex only works on nightly - if [[ $TRAVIS_RUST_VERSION == *"nightly"* ]]; then