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