From cf5e2282880326071f9fa1177957618184386f17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Fri, 18 Oct 2019 13:29:11 +0200 Subject: [PATCH] Update the CI to check the fmt and clippy --- azure-pipelines.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d0690e319..0dae15f75 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,13 +13,17 @@ jobs: steps: - script: | curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly - displayName: 'Install rustc' + $HOME/.cargo/bin/rustup component add rustfmt + displayName: 'Install rustc and components' - script: | $HOME/.cargo/bin/cargo check displayName: 'Check MeiliDB' - script: | $HOME/.cargo/bin/cargo test displayName: 'Test MeiliDB' + - script: | + $HOME/.cargo/bin/cargo fmt --all -- --check + displayName: 'Fmt MeiliDB' - job: build dependsOn: @@ -31,7 +35,8 @@ jobs: steps: - script: | curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly - displayName: 'Install rustc' + $HOME/.cargo/bin/rustup component add rustfmt + displayName: 'Install rustc and components' - script: | $HOME/.cargo/bin/cargo build --release displayName: 'Build MeiliDB'