Simplify CI scripts
This commit is contained in:
parent
0efac871bc
commit
e24826cea5
@ -21,10 +21,7 @@ tasks:
|
|||||||
cargo clippy --all-targets --all-features -- -D warnings
|
cargo clippy --all-targets --all-features -- -D warnings
|
||||||
clippy_exit=$?
|
clippy_exit=$?
|
||||||
|
|
||||||
cargo test --no-default-features --verbose
|
cargo test --verbose
|
||||||
test1_exit=$?
|
test_exit=$?
|
||||||
|
|
||||||
cargo test --all-features --verbose
|
exit $(( $fmt_exit || $clippy_exit || $test_exit ))
|
||||||
test2_exit=$?
|
|
||||||
|
|
||||||
exit $(( $fmt_exit || $clippy_exit || $test1_exit || $test2_exit ))
|
|
||||||
|
@ -11,16 +11,6 @@ tasks:
|
|||||||
- test: |
|
- test: |
|
||||||
cd ruma-api
|
cd ruma-api
|
||||||
|
|
||||||
# We don't want the build to stop on individual failure of independent
|
|
||||||
# tools, so capture tool exit codes and set the task exit code manually
|
|
||||||
set +e
|
|
||||||
|
|
||||||
# Only make sure the code builds with the MSRV. Tests can require later
|
# Only make sure the code builds with the MSRV. Tests can require later
|
||||||
# Rust versions, don't compile or run them.
|
# Rust versions, don't compile or run them.
|
||||||
cargo build --no-default-features --verbose
|
cargo build --verbose
|
||||||
build1_exit=$?
|
|
||||||
|
|
||||||
cargo build --all-features --verbose
|
|
||||||
build2_exit=$?
|
|
||||||
|
|
||||||
exit $(( $build1_exit || $build2_exit ))
|
|
||||||
|
@ -21,12 +21,9 @@ tasks:
|
|||||||
cargo clippy --all-targets --all-features -- -D warnings
|
cargo clippy --all-targets --all-features -- -D warnings
|
||||||
clippy_exit=$?
|
clippy_exit=$?
|
||||||
|
|
||||||
cargo test --no-default-features --verbose
|
|
||||||
test1_exit=$?
|
|
||||||
|
|
||||||
cargo test --all-features --verbose
|
cargo test --all-features --verbose
|
||||||
test2_exit=$?
|
test_exit=$?
|
||||||
|
|
||||||
exit $(( $fmt_exit || $clippy_exit || $test1_exit || $test2_exit ))
|
exit $(( $fmt_exit || $clippy_exit || $test_exit ))
|
||||||
# TODO: Add audit task once cargo-audit binary releases are available.
|
# TODO: Add audit task once cargo-audit binary releases are available.
|
||||||
# See https://github.com/RustSec/cargo-audit/issues/66
|
# See https://github.com/RustSec/cargo-audit/issues/66
|
||||||
|
Loading…
x
Reference in New Issue
Block a user