Merge pull request #2 from bspeice/travis_fix

Fix the Travis build
pull/3/head
bspeice 2018-12-09 04:34:16 +00:00 committed by GitHub
commit a0f06ab30a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -40,14 +40,12 @@ before_install:
install:
- source ~/.cargo/env || true
# Disabling for the time being: rust-lang/rustup.rs#1558
# - rustup component add rustfmt
script:
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
rustup component add rustfmt-preview
else
rustup component add rustfmt
fi
- cargo fmt --all -- --check
# Disabling for the time being: rust-lang/rustup.rs#1558
# - cargo fmt --all -- --check
- |
if [ -z "$TRAVIS_TAG" ]; then
cargo test