travis: Add a clippy stage.

master
Damir Jelić 2020-07-15 15:59:04 +02:00
parent 5bebe1d434
commit 38166135dc
1 changed files with 9 additions and 1 deletions

View File

@ -12,13 +12,21 @@ jobs:
name: macOS 10.15
include:
- stage: Lint
- stage: Format
os: linux
before_script:
- rustup component add rustfmt
script:
- 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
os: linux
dist: bionic