mirror of
https://github.com/rust-vmm/rust-vmm-ci.git
synced 2026-08-05 03:08:31 +00:00
Fixes: 6f7d3656a8 ("ci: convert build and test steps to use cargo-all-features")
Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
109 lines
2.7 KiB
JSON
109 lines
2.7 KiB
JSON
{
|
|
"tests": [
|
|
{
|
|
"test_name": "build-gnu",
|
|
"command": "RUSTFLAGS=\"-D warnings\" cargo all-features build --release --workspace --all-targets",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64",
|
|
"riscv64"
|
|
]
|
|
},
|
|
{
|
|
"test_name": "build-musl",
|
|
"command": "RUSTFLAGS=\"-D warnings\" cargo all-features build --release --target {target_platform}-unknown-linux-musl --workspace --all-targets",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64"
|
|
]
|
|
},
|
|
{
|
|
"test_name": "style",
|
|
"command": "cargo fmt --all -- --check --config format_code_in_doc_comments=true"
|
|
},
|
|
{
|
|
"test_name": "doc",
|
|
"command": "RUSTDOCFLAGS=\"-D warnings\" cargo doc --workspace --all-features --no-deps"
|
|
},
|
|
{
|
|
"test_name": "unittests-gnu",
|
|
"command": "cargo all-features test --workspace",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64",
|
|
"riscv64"
|
|
],
|
|
"docker_plugin": {
|
|
"privileged": true
|
|
}
|
|
},
|
|
{
|
|
"test_name": "unittests-musl",
|
|
"command": "cargo all-features test --workspace --target {target_platform}-unknown-linux-musl",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64"
|
|
],
|
|
"docker_plugin": {
|
|
"privileged": true
|
|
}
|
|
},
|
|
{
|
|
"test_name": "unittests-gnu-release",
|
|
"command": "cargo all-features test --release --workspace",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64",
|
|
"riscv64"
|
|
],
|
|
"docker_plugin": {
|
|
"privileged": true
|
|
}
|
|
},
|
|
{
|
|
"test_name": "unittests-musl-release",
|
|
"command": "cargo all-features test --release --workspace --target {target_platform}-unknown-linux-musl",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64"
|
|
],
|
|
"docker_plugin": {
|
|
"privileged": true
|
|
}
|
|
},
|
|
{
|
|
"test_name": "clippy",
|
|
"command": "cargo all-features clippy --workspace --all-targets -- -D warnings -D clippy::undocumented_unsafe_blocks",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64",
|
|
"riscv64"
|
|
]
|
|
},
|
|
{
|
|
"test_name": "coverage",
|
|
"command": "pytest $(find . -type f -name \"test_coverage.py\")",
|
|
"docker_plugin": {
|
|
"privileged": true
|
|
},
|
|
"platform": [
|
|
"x86_64"
|
|
]
|
|
},
|
|
{
|
|
"test_name": "commit-format",
|
|
"command": "pytest $(find . -type f -name \"test_commit_format.py\")",
|
|
"docker_plugin": {
|
|
"propagate-environment": true
|
|
}
|
|
},
|
|
{
|
|
"test_name": "cargo-audit",
|
|
"command": "[ -e Cargo.lock ] || cargo generate-lockfile; cargo audit -q --deny warnings",
|
|
"platform": [
|
|
"x86_64"
|
|
]
|
|
}
|
|
]
|
|
}
|