use rustup.rs for travis

This commit is contained in:
herrernst 2017-03-26 13:24:48 +02:00
parent eb49ff34f1
commit 1f2b37a600

View file

@ -19,7 +19,7 @@ before_script:
- mkdir -p ~/.cargo - mkdir -p ~/.cargo
- echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config - echo '[target.armv7-unknown-linux-gnueabihf]' > ~/.cargo/config
- echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.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 - rustup target add armv7-unknown-linux-gnueabihf
script: script:
- cargo build --no-default-features - cargo build --no-default-features