-
Notifications
You must be signed in to change notification settings - Fork 39
Use cargo-all-features for our CI #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
otherwise, on multi-crate workspaces, this test run does precisely nothing. Signed-off-by: Patrick Roy <[email protected]>
Note that this can deal with mutually exclusive features: https://crates.io/crates/cargo-all-features#options |
@roypat great! thanks for doing this! LGTM, but should we just swap the last 2 patches, I mean first update the container image, then use |
This ensures tests, binaries, benchmarks, examples and libraries are all build-tested, instead of just the default targets. Signed-off-by: Patrick Roy <[email protected]>
We already run `cargo build` with `RUSTFlAGS=-Dwarnings`, so also running `cargo check` with the same arguments, on the same architectures, and with the same rustflags gains us nothing. Signed-off-by: Patrick Roy <[email protected]>
--libs --benches and co are already implies by --all-targets. Signed-off-by: Patrick Roy <[email protected]>
Ah, yes, done! I also swapped the two commits about dropping the |
pick up container that has cargo-all-features installed. Signed-off-by: Patrick Roy <[email protected]>
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]>
Summary of the PR
Use cargo-all-features in our CI, to ensure that all feature combinations are tested. Closes #152.
The first 4 commits are fixes / cleanups, the last one actually enables cargo-all-features. Needs rust-vmm/rust-vmm-container#139 first.
Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s
), and the commit message has max 60 characters for thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafe
code is properly documented.