Seriously?

pull/2/head
Bradlee Speice 2018-12-08 19:39:32 -05:00
parent c14a26baaf
commit 68e9f97b2b
1 changed files with 3 additions and 1 deletions

View File

@ -41,10 +41,12 @@ before_install:
install: install:
- source ~/.cargo/env || true - source ~/.cargo/env || true
- | - |
echo "TRAVIS_RUST_VERSION:$TRAVIS_RUST_VERSION" echo "TRAVIS_RUST_VERSION=\"$TRAVIS_RUST_VERSION\""
if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
echo "Installing preview"
rustup component add rustfmt-preview rustup component add rustfmt-preview
else else
echo "Installing standard"
rustup component add rustfmt rustup component add rustfmt
fi fi