From 9583cdea280d38d72678a4bec8a4b7559857127f Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Wed, 30 Nov 2016 16:29:01 +0100 Subject: [PATCH] Test for rustfmt/xargo instead of using `|| true` (#257) --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b3b9e3d6..7ef6920c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,8 +9,8 @@ before_script: - curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain=$TRAVIS_RUST_VERSION -y - source ~/.cargo/env - rustup component add rust-src - - (cargo install rustfmt || true) - - (cargo install xargo || true) + - (test -x $HOME/.cargo/bin/rustfmt || cargo install rustfmt) + - (test -x $HOME/.cargo/bin/xargo || cargo install xargo) sudo: false