Skip to content

Commit bd5e92c

Browse files
committed
[ci] check formatting
1 parent 556b2e7 commit bd5e92c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,21 @@ matrix:
1414
script: ci/run.sh
1515
- install: true
1616
script: ci/dox.sh
17+
- env: RUSTFMT=On NO_ADD=1
18+
allow_failures:
19+
- env: RUSTFMT=On NO_ADD=1
1720

1821
install:
19-
- if [ "$NO_ADD" = "" ]; then rustup target add $TARGET; fi
22+
- if [ "$NO_ADD" == "" ]; then rustup target add $TARGET; fi
2023

2124
script:
2225
- cargo generate-lockfile
2326
- ci/run-docker.sh $TARGET
27+
- |
28+
if [[ ${RUSTFMT} == "On" ]]; then
29+
cargo install rustfmt-nightly
30+
cargo fmt -- --write-mode=diff
31+
fi
2432
2533
notifications:
2634
email:

rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
max_width = 79

0 commit comments

Comments
 (0)