Skip to content

Commit ce4a089

Browse files
josephlrnewpavlov
authored andcommitted
Add a (nonfailing) rustfmt check to the CI (#23)
1 parent db27e97 commit ce4a089

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ matrix:
2323
- rust: beta
2424
env: DESCRIPTION="Linux, beta"
2525

26+
- rust: stable
27+
env: DESCRIPTION="Rustfmt"
28+
install:
29+
- rustup component add rustfmt
30+
script:
31+
- cargo fmt --all -- src/*.rs --check
32+
2633
- rust: nightly
2734
os: linux
2835
env: DESCRIPTION="Linux, nightly, docs"
@@ -137,6 +144,10 @@ matrix:
137144
script:
138145
- bash utils/ci/script.sh
139146

147+
allow_failures:
148+
# Formatting errors should appear in Travis, but not break the build.
149+
- env: DESCRIPTION="Rustfmt"
150+
140151
before_install:
141152
- set -e
142153
- rustup self update

0 commit comments

Comments
 (0)