From 77a9f4b459b92602ec926c3e1c06a77cf3d3697c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 18 Jun 2019 13:03:55 +0300 Subject: [PATCH] Remove ARM/Windows builds from the CI and add `cargo fmt` step The ARM/Windows cross-builds were not too useful on their own and we should rather set up proper CI for them. --- .gitlab-ci.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 794e84ee8..8dfbd083a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,5 @@ stages: + - "lint" - "test" .cargo_cache: &cache @@ -114,12 +115,10 @@ test nightly: - cargo check --target $CROSS_TARGET_TRIPLET --all --color=always - cargo check --target $CROSS_TARGET_TRIPLET --all --all-features --color=always -test stable-armv7-unknown-linux-gnueabihf: - extends: .cargo_cross_check_template - variables: - CROSS_TARGET_TRIPLET: "armv7-unknown-linux-gnueabihf" - -test stable-x86_64-pc-windows-gnu: - extends: .cargo_cross_check_template - variables: - CROSS_TARGET_TRIPLET: "x86_64-pc-windows-gnu" +rustfmt: + image: "rust:slim" + stage: "lint" + script: + - rustup component add rustfmt + - cargo fmt --version + - cargo fmt -- --color=always --check