Skip to content

Commit e71e439

Browse files
committed
ci: convert build and test steps to use cargo-all-features
Ensure that every permutation of feature flags is both build-tested, and has their unit-tests ran. The unit-testing part can be reverted to `--all-features` at some point, once we have made sure that all our cargo features are actually additive. Signed-off-by: Patrick Roy <[email protected]>
1 parent f3b541e commit e71e439

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.buildkite/test_description.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"tests": [
33
{
44
"test_name": "build-gnu",
5-
"command": "RUSTFLAGS=\"-D warnings\" cargo build --release --workspace --all-targets",
5+
"command": "RUSTFLAGS=\"-D warnings\" cargo all-features build --release --workspace --all-targets",
66
"platform": [
77
"x86_64",
88
"aarch64",
@@ -11,7 +11,7 @@
1111
},
1212
{
1313
"test_name": "build-musl",
14-
"command": "RUSTFLAGS=\"-D warnings\" cargo build --release --target {target_platform}-unknown-linux-musl --workspace --all-targets",
14+
"command": "RUSTFLAGS=\"-D warnings\" cargo all-features build --release --target {target_platform}-unknown-linux-musl --workspace --all-targets",
1515
"platform": [
1616
"x86_64",
1717
"aarch64"
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"test_name": "unittests-musl",
38-
"command": "cargo test --all-features --workspace --target {target_platform}-unknown-linux-musl",
38+
"command": "cargo all-features test --workspace --target {target_platform}-unknown-linux-musl",
3939
"platform": [
4040
"x86_64",
4141
"aarch64"
@@ -46,7 +46,7 @@
4646
},
4747
{
4848
"test_name": "unittests-gnu-release",
49-
"command": "cargo test --release --all-features --workspace",
49+
"command": "cargo all-features test --release --workspace",
5050
"platform": [
5151
"x86_64",
5252
"aarch64",
@@ -58,7 +58,7 @@
5858
},
5959
{
6060
"test_name": "unittests-musl-release",
61-
"command": "cargo test --release --all-features --workspace --target {target_platform}-unknown-linux-musl",
61+
"command": "cargo all-features test --release --workspace --target {target_platform}-unknown-linux-musl",
6262
"platform": [
6363
"x86_64",
6464
"aarch64"

0 commit comments

Comments
 (0)