Skip to content

Commit 6f7d365

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 d827166 commit 6f7d365

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"
@@ -39,7 +39,7 @@
3939
},
4040
{
4141
"test_name": "unittests-musl",
42-
"command": "cargo test --all-features --workspace --target {target_platform}-unknown-linux-musl",
42+
"command": "cargo all-features test --workspace --target {target_platform}-unknown-linux-musl",
4343
"platform": [
4444
"x86_64",
4545
"aarch64"
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"test_name": "unittests-gnu-release",
53-
"command": "cargo test --release --all-features --workspace",
53+
"command": "cargo all-features test --release --workspace",
5454
"platform": [
5555
"x86_64",
5656
"aarch64",
@@ -62,7 +62,7 @@
6262
},
6363
{
6464
"test_name": "unittests-musl-release",
65-
"command": "cargo test --release --all-features --workspace --target {target_platform}-unknown-linux-musl",
65+
"command": "cargo all-features test --release --workspace --target {target_platform}-unknown-linux-musl",
6666
"platform": [
6767
"x86_64",
6868
"aarch64"

0 commit comments

Comments
 (0)