Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down