From 840d16216aeb2e0956354ddf87dc2139071473e4 Mon Sep 17 00:00:00 2001 From: Mike Welsh Date: Wed, 4 Sep 2019 13:31:25 -0700 Subject: [PATCH] ci: Run cargo fmt and clippy on builds --- .circleci/config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 428c7eb2b..84d44567a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: |