From b3959782b10a8ad8005d302951ea0f8e38357920 Mon Sep 17 00:00:00 2001 From: Abraham Toriz Date: Sat, 26 Nov 2022 01:20:02 -0600 Subject: [PATCH] dont run test and build in different steps --- .gitlab-ci.yml | 2 ++ scripts/build.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index adc8c3c..ac1e0ab 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,8 @@ test:cargo: - rustup component add clippy - cargo clippy --all-targets --all-features -- -D warnings - cargo test + rules: + - if: $CI_COMMIT_BRANCH == "main" build-doc: stage: build-doc diff --git a/scripts/build.sh b/scripts/build.sh index 2e1faab..693f4d6 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -10,6 +10,9 @@ gzip -f build/man/tiempo.1 cd .. # build the binary +rustup component add clippy +cargo clippy --all-targets --all-features -- -D warnings +cargo test cargo build --locked --release # create the tar package