dont run test and build in different steps

This commit is contained in:
Abraham Toriz 2022-11-26 01:20:02 -06:00
parent ec87086b26
commit b3959782b1
No known key found for this signature in database
GPG Key ID: D5B4A746DB5DD42A
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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