From 29df3aa6983ab37a691e310e7f286d23b6482be9 Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Fri, 7 Oct 2022 09:33:55 +0200 Subject: [PATCH] simplify ci pipe --- .gitlab-ci.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a1ba8a7..0cbd700 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,9 +1,9 @@ image: rust:latest stages: - - build - - fmt - lint + - build + run-build: stage: build @@ -12,20 +12,13 @@ run-build: - rustc --version && cargo --version - cargo build --release --jobs 1 -run-fmt: - stage: fmt - image: rust:latest - before_script: - - rustup component add rustfmt - script: - - rustc --version && cargo --version - - cargo fmt -- --check - run-lint: stage: lint image: rust:latest before_script: + - rustup component add rustfmt - rustup component add clippy script: - rustc --version && cargo --version + - cargo fmt -- --check - cargo clippy --all-targets --all-features -- -D warnings