Files
rust-vmm-ci/.buildkite/test_description.json
Laura Loghin b6858b232d run cargo audit with --deny warnings enabled
It is better to fail on warnings as well when running `cargo
audit` so we can catch problems in time.
Fixes https://github.com/rust-vmm/rust-vmm-ci/issues/52.

Signed-off-by: Laura Loghin <lauralg@amazon.com>
2022-01-11 15:11:28 +01:00

78 lines
1.8 KiB
JSON

{
"tests": [
{
"test_name": "build-gnu",
"command": "RUSTFLAGS=\"-D warnings\" cargo build --release",
"platform": [
"x86_64",
"aarch64"
]
},
{
"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"
]
},
{
"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",
"platform": [
"x86_64",
"aarch64"
]
},
{
"test_name": "check-warnings",
"command": "RUSTFLAGS=\"-D warnings\" cargo check --all-targets --all-features --workspace",
"platform": [
"x86_64",
"aarch64"
]
},
{
"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": "cargo audit -q --deny warnings"
}
]
}