ci: Run cargo fmt and clippy on builds

This commit is contained in:
Mike Welsh 2019-09-04 13:31:25 -07:00
parent 9c9b3db7f4
commit 840d16216a
1 changed files with 10 additions and 0 deletions

View File

@ -15,6 +15,16 @@ jobs:
rustup toolchain install stable
rustup run stable rustc --version --verbose
rustup run stable cargo test --package=ruffle_core
- run:
name: Clippy + Format
command: |
rustup toolchain install stable
rustup component add --toolchain stable clippy
rustup run stable cargo clippy --version
rustup run stable cargo clippy --all --tests -- -D warnings
rustup component add --toolchain stable rustfmt
rustup run stable cargo fmt --version
rustup run stable cargo fmt --all -- --check
- run:
name: Desktop Build
command: |