ci: Run tests with compat features
This commit is contained in:
parent
75e8829bec
commit
de20f0351f
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -132,6 +132,9 @@ jobs:
|
||||
- name: Run Tests
|
||||
cmd: test-all
|
||||
|
||||
- name: Run Compat Tests
|
||||
cmd: test-compat
|
||||
|
||||
- name: Run Doc Tests
|
||||
cmd: test-doc
|
||||
|
||||
|
@ -46,6 +46,8 @@ pub enum CiCmd {
|
||||
StableCommon,
|
||||
/// Run all tests with almost all features (stable)
|
||||
TestAll,
|
||||
/// Run all tests with almost all features, including the compat features (stable)
|
||||
TestCompat,
|
||||
/// Run doc tests with almost all features (stable)
|
||||
TestDoc,
|
||||
/// Run all the tasks that use the nightly version
|
||||
@ -108,6 +110,7 @@ impl CiTask {
|
||||
Some(CiCmd::StableClient) => self.stable_client()?,
|
||||
Some(CiCmd::StableCommon) => self.stable_common()?,
|
||||
Some(CiCmd::TestAll) => self.test_all()?,
|
||||
Some(CiCmd::TestCompat) => self.test_compat()?,
|
||||
Some(CiCmd::TestDoc) => self.test_doc()?,
|
||||
Some(CiCmd::Nightly) => self.nightly()?,
|
||||
Some(CiCmd::Fmt) => self.fmt()?,
|
||||
@ -207,6 +210,14 @@ impl CiTask {
|
||||
cmd!("rustup run stable cargo test --tests --features __ci").run().map_err(Into::into)
|
||||
}
|
||||
|
||||
/// Run tests on all crates with almost all features and the compat features with the stable
|
||||
/// version.
|
||||
fn test_compat(&self) -> Result<()> {
|
||||
cmd!("rustup run stable cargo test --tests --features __ci,compat")
|
||||
.run()
|
||||
.map_err(Into::into)
|
||||
}
|
||||
|
||||
/// Run doctests on all crates with almost all features with the stable version.
|
||||
fn test_doc(&self) -> Result<()> {
|
||||
cmd!("rustup run stable cargo test --doc --features __ci").run().map_err(Into::into)
|
||||
|
Loading…
x
Reference in New Issue
Block a user