Uninstalling Rust on Travis requires something different

This commit is contained in:
Frank Denis 2017-04-27 22:34:04 +02:00
parent f9d7237671
commit 2bab4b0afb
2 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,10 @@ matrix:
rust: nightly
env: TARGET=x86_64-unknown-linux-gnu
- os: linux
rust: stable
env: TARGET=x86_64-unknown-linux-gnu
allow_failures:
# TODO You might need to allow failures for some target on some channel for some reason. Below
# there's one (commented out) example of how to do that. Just change the OS, channel and TARGET

View File

@ -17,9 +17,6 @@ install_c_toolchain() {
}
install_rustup() {
# uninstall the rust toolchain installed by travis, we are going to use rustup
sh ~/rust/lib/rustlib/uninstall.sh
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain=$TRAVIS_RUST_VERSION
rustc -V