Add a (nonfailing) rustfmt check to the CI (#23)
This commit is contained in:
parent
db27e97d94
commit
ce4a089878
11
.travis.yml
11
.travis.yml
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user