dont run test and build in different steps
This commit is contained in:
parent
ec87086b26
commit
b3959782b1
|
@ -14,6 +14,8 @@ test:cargo:
|
||||||
- rustup component add clippy
|
- rustup component add clippy
|
||||||
- cargo clippy --all-targets --all-features -- -D warnings
|
- cargo clippy --all-targets --all-features -- -D warnings
|
||||||
- cargo test
|
- cargo test
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
|
||||||
build-doc:
|
build-doc:
|
||||||
stage: build-doc
|
stage: build-doc
|
||||||
|
|
|
@ -10,6 +10,9 @@ gzip -f build/man/tiempo.1
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
# build the binary
|
# build the binary
|
||||||
|
rustup component add clippy
|
||||||
|
cargo clippy --all-targets --all-features -- -D warnings
|
||||||
|
cargo test
|
||||||
cargo build --locked --release
|
cargo build --locked --release
|
||||||
|
|
||||||
# create the tar package
|
# create the tar package
|
||||||
|
|
Loading…
Reference in New Issue