Skip to content

Commit 0cb7db4

Browse files
committed
[ci] check formatting
1 parent b9edf42 commit 0cb7db4

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
@@ -16,13 +16,21 @@ matrix:
1616
script: ci/run.sh
1717
- install: true
1818
script: ci/dox.sh
19+
- env: RUSTFMT=On NO_ADD=1
20+
allow_failures:
21+
- env: RUSTFMT=On NO_ADD=1
1922

2023
install:
21-
- if [ "$NO_ADD" = "" ]; then rustup target add $TARGET; fi
24+
- if [ "$NO_ADD" == "" ]; then rustup target add $TARGET; fi
2225

2326
script:
2427
- cargo generate-lockfile
2528
- ci/run-docker.sh $TARGET
29+
- |
30+
if [[ ${RUSTFMT} == "On" ]]; then
31+
cargo install rustfmt-nightly
32+
cargo fmt -- --write-mode=diff
33+
fi
2634
2735
notifications:
2836
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)