Skip to content

Commit 6cebcea

Browse files
committed
Run rustfmt in travis.
1 parent 1302568 commit 6cebcea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
sudo: required
22
language: rust
3+
cache: cargo
34
addons:
45
apt:
56
packages:
@@ -16,10 +17,12 @@ before_script:
1617
- |
1718
pip install 'travis-cargo<0.2' --user &&
1819
export PATH=$HOME/.local/bin:$PATH
20+
- cargo install --force rustfmt
1921
script:
2022
- |
2123
travis-cargo build &&
2224
travis-cargo test &&
25+
travis-cargo fmt -- --write-mode diff &&
2326
travis-cargo --only stable doc
2427
after_success:
2528
- travis-cargo coveralls --no-sudo --verify

0 commit comments

Comments
 (0)