Skip to content

Commit 219fedc

Browse files
committed
feat(CI): Check for code-smells
1 parent 60d1b8d commit 219fedc

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.travis.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@ rust:
88

99
matrix:
1010
include:
11-
- rust: 1.24.0 # `stable`: Locking down for consistent behavior
12-
env: RUSTFMT
11+
- env: RUSTFMT
12+
rust: 1.24.0 # `stable`: Locking down for consistent behavior
1313
install:
1414
- rustup component add rustfmt-preview
1515
script:
1616
- cargo fmt -- --write-mode=diff
17+
- env: RUSTFLAGS="-D warnings"
18+
rust: 1.24.0 # `stable`: Locking down for consistent behavior
19+
script:
20+
- cargo check --tests
21+
- env: CLIPPY_VERSION=0.0.179
22+
rust: nightly-2018-01-12
23+
install:
24+
- travis_wait cargo install clippy --version $CLIPPY_VERSION || echo "clippy already installed"
25+
script:
26+
- cargo clippy -- -D clippy
1727

1828
install:
1929
- rustc -Vv

0 commit comments

Comments
 (0)