Skip to content

Commit e721969

Browse files
committed
Use rustup to add targets
1 parent 859d93a commit e721969

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
language: rust
22
rust:
3-
- 1.5.0
3+
- stable
44
- beta
55
- nightly
66
sudo: false
77
install:
88
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then OS=unknown-linux-gnu; else OS=apple-darwin; fi
99
- export TARGET=$ARCH-$OS
10-
- curl -sO https://static.rust-lang.org/dist/rust-$TRAVIS_RUST_VERSION-$TARGET.tar.gz
11-
- tar xf rust-$TRAVIS_RUST_VERSION-$TARGET.tar.gz
12-
- rm -rf $HOME/rust/lib/rustlib/$TARGET
13-
- mv rust-$TRAVIS_RUST_VERSION-$TARGET/rust-std-$TARGET/lib/rustlib/$TARGET $HOME/rust/lib/rustlib
10+
- curl https://static.rust-lang.org/rustup.sh |
11+
sh -s -- --add-target=$TARGET --disable-sudo -y --prefix=`rustc --print sysroot`
1412
before_script:
1513
- pip install 'travis-cargo<0.2' --user && export PATH=$HOME/.local/bin:$PATH
1614
script:

0 commit comments

Comments
 (0)