Skip to content

Commit

Permalink
fix: doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandros committed Nov 5, 2024
1 parent eb593e4 commit 655cd49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license.workspace = true
workspace = true

[dependencies]
ferrunix = { path = "../ferrunix", default-features = false, features = ["derive", "multithread"], version = "=0.3.0" }
ferrunix = { path = "../ferrunix", version = "=0.3.0" }

[dev-dependencies]
skeptic = { git = "https://github.com/Leandros/rust-skeptic.git", rev = "45d69d27c3ee1f0cf66072053bb6f88c1be0e07b" }
Expand Down
9 changes: 8 additions & 1 deletion xtask/src/ci.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ pub(super) fn run(args: &CiArgs) -> Result<()> {
ferrunix
.chain(ferrunix_core)
.chain(ferrunix_macros)
.chain(iter::once(("doc-tests", String::new())))
.filter(|(_, features)| {
if filter.is_empty() {
true
Expand Down Expand Up @@ -125,6 +124,14 @@ pub(super) fn run(args: &CiArgs) -> Result<()> {
}
}

{
cmd!(sh, "cargo clean -p ferrunix -p ferrunix-core -p ferrunix-macros").run()?;
let res = cmd!(sh, "cargo {testrunner...} -p doc-tests").run();
if let Err(err) = res {
errors.push(err);
}
}

if !args.no_extended && cmd!(sh, "cargo clippy --version").output().is_ok()
{
let res = cmd!(sh, "cargo clippy --tests --workspace").run();
Expand Down

0 comments on commit 655cd49

Please sign in to comment.