Test for rustfmt/xargo instead of using || true (#257)

This commit is contained in:
Philipp Oppermann
2016-11-30 16:29:01 +01:00
committed by GitHub
parent bef61116fd
commit 9583cdea28

View File

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