test in ci

This commit is contained in:
Corwin 2022-08-01 17:36:12 +01:00
parent f7d6199ab2
commit 191741d3c8

View file

@ -13,9 +13,11 @@ clippy:
test: test:
just _test-debug agb just _test-debug agb
just _test-debug agb-fixnum just _test-debug agb-fixnum
just _test-debug-arm agb
test-release: test-release:
just _test-release agb just _test-release agb
just _test-release-arm agb
doctest-agb: doctest-agb:
(cd agb && cargo test --doc -Z doctest-xcompile) (cd agb && cargo test --doc -Z doctest-xcompile)
@ -92,9 +94,13 @@ _build-release crate:
_test-release crate: _test-release crate:
just _build-release {{crate}} just _build-release {{crate}}
(cd "{{crate}}" && cargo test --release) (cd "{{crate}}" && cargo test --release)
_test-release-arm crate:
(cd "{{crate}}" && cargo test --release --target={{justfile_directory()+"/armv4t-none-eabi.json"}})
_test-debug crate: _test-debug crate:
just _build-debug {{crate}} just _build-debug {{crate}}
(cd "{{crate}}" && cargo test) (cd "{{crate}}" && cargo test)
_test-debug-arm crate:
(cd "{{crate}}" && cargo test --release --target={{justfile_directory()+"/armv4t-none-eabi.json"}})
_clippy crate: _clippy crate:
(cd "{{crate}}" && cargo clippy --examples --tests -- {{CLIPPY_ARGUMENTS}}) (cd "{{crate}}" && cargo clippy --examples --tests -- {{CLIPPY_ARGUMENTS}})
_clean crate: _clean crate: