Skip to content

Commit 0c97315

Browse files
committed
[ci] check formatting
1 parent f08e9c2 commit 0c97315

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

2124
install:
22-
- if [ "$NO_ADD" = "" ]; then rustup target add $TARGET; fi
25+
- if [ "$NO_ADD" == "" ]; then rustup target add $TARGET; fi
2326

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