Skip to content

Commit

Permalink
use rustup and install the rust-src component
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge Aparicio committed Oct 17, 2016
1 parent 4e145ba commit dec1b00
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,18 @@ matrix:
rust: stable

install:
# curl: `std for cross-compilation
# curl: `rustc` + Cargo
# rustup: `rust-src` or `rust-std`
# docker: For transparent QEMU user emulation
- if [ -z $TRAVIS_TAG ] || [ $TRAVIS_RUST_VERSION = $DEPLOY_VERSION ]; then
case $TARGET in thumbv*-none-eabi*) ;; *)
curl https://static.rust-lang.org/rustup.sh |
sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot`;;
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION;

source ~/.cargo/env;

case $TARGET in
x86_64-apple-darwin | x86_64-unknown-linux-gnu) ;;
thumbv*-none-eabi*) rustup component add rust-src ;;
*) rustup target add $TARGET;;
esac;

test $TRAVIS_OS_NAME = osx ||
Expand Down

0 comments on commit dec1b00

Please sign in to comment.