travis: Add a clippy stage.
parent
5bebe1d434
commit
38166135dc
10
.travis.yml
10
.travis.yml
|
@ -12,13 +12,21 @@ jobs:
|
||||||
name: macOS 10.15
|
name: macOS 10.15
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- stage: Lint
|
- stage: Format
|
||||||
os: linux
|
os: linux
|
||||||
before_script:
|
before_script:
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
script:
|
script:
|
||||||
- cargo fmt --all -- --check
|
- cargo fmt --all -- --check
|
||||||
|
|
||||||
|
- stage: Clippy
|
||||||
|
os: linux
|
||||||
|
before_script:
|
||||||
|
- rustup component add clippy
|
||||||
|
script:
|
||||||
|
- cargo clippy --all-targets --all-features -- -D warnings
|
||||||
|
|
||||||
|
|
||||||
- stage: Test
|
- stage: Test
|
||||||
os: linux
|
os: linux
|
||||||
dist: bionic
|
dist: bionic
|
||||||
|
|
Loading…
Reference in New Issue