From e4718d759892c357a7d80845d2e15c9a61a43e98 Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Sat, 26 Feb 2022 16:54:20 +0100 Subject: [PATCH] ci: simplify ci pipeline, check formatting --- .gitlab-ci.yml | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 732282f..d67d44f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,25 +1,13 @@ -stages: - - build - -build:clippy: - stage: build - tags: - - docker +build, test and lint: image: "rust:1-bullseye" + interruptible: true script: - apt update -qy - - apt install -qy libclang-dev build-essential pkg-config clang nettle-dev gettext zsh + - apt install -qy build-essential pkg-config clang libclang-dev nettle-dev gettext zsh - rustup component add clippy - - RUST_BACKTRACE=full cargo clippy - -build:binary: - stage: build - tags: - - docker - image: "rustlang/rust:nightly" - script: - - apt update -qy - - apt install -qy libclang-dev build-essential pkg-config clang nettle-dev gettext zsh + - rustup component add rustfmt - ./make-translated-templates - - RUST_BACKTRACE=full cargo build - - RUST_BACKTRACE=full cargo test --all + - cargo build + - cargo clippy --no-deps + - cargo fmt --all -- --check + - cargo test --all