Fix CI by avoiding duplicate rustup installation (#330)

Travis uses rustup by default now
This commit is contained in:
Philipp Oppermann
2017-06-19 14:05:54 +02:00
committed by GitHub
parent 31806c7e92
commit 7d584818ff

View File

@@ -6,8 +6,6 @@ rust:
cache: cargo cache: cargo
before_script: before_script:
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y
- source ~/.cargo/env
- rustup component add rust-src - rustup component add rust-src
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update) - (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/rustfmt || cargo install rustfmt) - (test -x $HOME/.cargo/bin/rustfmt || cargo install rustfmt)