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
|
- name: Run Tests
|
||||||
cmd: test-all
|
cmd: test-all
|
||||||
|
|
||||||
|
- name: Run Compat Tests
|
||||||
|
cmd: test-compat
|
||||||
|
|
||||||
- name: Run Doc Tests
|
- name: Run Doc Tests
|
||||||
cmd: test-doc
|
cmd: test-doc
|
||||||
|
|
||||||
|
@ -46,6 +46,8 @@ pub enum CiCmd {
|
|||||||
StableCommon,
|
StableCommon,
|
||||||
/// Run all tests with almost all features (stable)
|
/// Run all tests with almost all features (stable)
|
||||||
TestAll,
|
TestAll,
|
||||||
|
/// Run all tests with almost all features, including the compat features (stable)
|
||||||
|
TestCompat,
|
||||||
/// Run doc tests with almost all features (stable)
|
/// Run doc tests with almost all features (stable)
|
||||||
TestDoc,
|
TestDoc,
|
||||||
/// Run all the tasks that use the nightly version
|
/// Run all the tasks that use the nightly version
|
||||||
@ -108,6 +110,7 @@ impl CiTask {
|
|||||||
Some(CiCmd::StableClient) => self.stable_client()?,
|
Some(CiCmd::StableClient) => self.stable_client()?,
|
||||||
Some(CiCmd::StableCommon) => self.stable_common()?,
|
Some(CiCmd::StableCommon) => self.stable_common()?,
|
||||||
Some(CiCmd::TestAll) => self.test_all()?,
|
Some(CiCmd::TestAll) => self.test_all()?,
|
||||||
|
Some(CiCmd::TestCompat) => self.test_compat()?,
|
||||||
Some(CiCmd::TestDoc) => self.test_doc()?,
|
Some(CiCmd::TestDoc) => self.test_doc()?,
|
||||||
Some(CiCmd::Nightly) => self.nightly()?,
|
Some(CiCmd::Nightly) => self.nightly()?,
|
||||||
Some(CiCmd::Fmt) => self.fmt()?,
|
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)
|
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.
|
/// Run doctests on all crates with almost all features with the stable version.
|
||||||
fn test_doc(&self) -> Result<()> {
|
fn test_doc(&self) -> Result<()> {
|
||||||
cmd!("rustup run stable cargo test --doc --features __ci").run().map_err(Into::into)
|
cmd!("rustup run stable cargo test --doc --features __ci").run().map_err(Into::into)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user