Add a (nonfailing) rustfmt check to the CI (#23)

This commit is contained in:
Joseph Richey 2019-06-10 19:41:34 -04:00 committed by Artyom Pavlov
parent db27e97d94
commit ce4a089878

View File

@ -23,6 +23,13 @@ matrix:
- rust: beta
env: DESCRIPTION="Linux, beta"
- rust: stable
env: DESCRIPTION="Rustfmt"
install:
- rustup component add rustfmt
script:
- cargo fmt --all -- src/*.rs --check
- rust: nightly
os: linux
env: DESCRIPTION="Linux, nightly, docs"
@ -137,6 +144,10 @@ matrix:
script:
- bash utils/ci/script.sh
allow_failures:
# Formatting errors should appear in Travis, but not break the build.
- env: DESCRIPTION="Rustfmt"
before_install:
- set -e
- rustup self update