mirror of
https://github.com/rust-vmm/rust-vmm-ci.git
synced 2026-08-05 03:08:31 +00:00
Introduce logic necessary for generating YAML needed by BuildKite, which are designed to work with image introduced in rust-vmm/rust-vmm-container#106. The container version is updated to v44 to enable CI on RISC-V platform. Signed-off-by: Ruoqing He <heruoqing@iscas.ac.cn>
85 lines
2.0 KiB
JSON
85 lines
2.0 KiB
JSON
{
|
|
"tests": [
|
|
{
|
|
"test_name": "build-gnu",
|
|
"command": "RUSTFLAGS=\"-D warnings\" cargo build --release",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64",
|
|
"riscv64"
|
|
]
|
|
},
|
|
{
|
|
"test_name": "build-musl",
|
|
"command": "RUSTFLAGS=\"-D warnings\" cargo build --release --target {target_platform}-unknown-linux-musl",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64"
|
|
]
|
|
},
|
|
{
|
|
"test_name": "style",
|
|
"command": "cargo fmt --all -- --check --config format_code_in_doc_comments=true"
|
|
},
|
|
{
|
|
"test_name": "unittests-gnu",
|
|
"command": "cargo test --all-features --workspace",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64",
|
|
"riscv64"
|
|
]
|
|
},
|
|
{
|
|
"test_name": "unittests-musl",
|
|
"command": "cargo test --all-features --workspace --target {target_platform}-unknown-linux-musl",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64"
|
|
]
|
|
},
|
|
{
|
|
"test_name": "clippy",
|
|
"command": "cargo clippy --workspace --bins --examples --benches --all-features --all-targets -- -D warnings -D clippy::undocumented_unsafe_blocks",
|
|
"platform": [
|
|
"x86_64",
|
|
"aarch64",
|
|
"riscv64"
|
|
]
|
|
},
|
|
{
|
|
"test_name": "check-warnings",
|
|
"command": "RUSTFLAGS=\"-D warnings\" cargo check --all-targets --all-features --workspace",
|
|
"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"
|
|
]
|
|
}
|
|
]
|
|
}
|