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 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