Lines Matching refs:sh

11     let sh = Shell::new()?;
13 let _e = push_toolchain(&sh, "stable")?;
14 let _e = sh.push_env("CARGO", "");
18 cmd!(sh, "cargo test --workspace --no-run").run()?;
25 cmd!(sh, "cargo test --features unstable {release...}").run()?;
27 sh,
34 cmd!(sh, "cargo test --no-default-features --features unstable --test it").run()?;
35 cmd!(sh, "cargo test --no-default-features --features unstable,alloc --test it").run()?;
37 cmd!(sh, "cargo test --no-default-features --features critical-section").run()?;
38 cmd!(sh, "cargo test --features critical-section").run()?;
43 let _e = push_toolchain(&sh, "beta")?;
44 cmd!(sh, "cargo test --features unstable").run()?;
49 let _e = push_toolchain(&sh, MSRV)?;
50 sh.copy_file("Cargo.lock.msrv", "Cargo.lock")?;
51 cmd!(sh, "cargo build").run()?;
56 let miri_nightly= cmd!(sh, "curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri").read()?;
57 let _e = push_toolchain(&sh, &format!("nightly-{}", miri_nightly))?;
59 sh.remove_path("./target")?;
61 cmd!(sh, "rustup component add miri").run()?;
62 cmd!(sh, "cargo miri setup").run()?;
63 cmd!(sh, "cargo miri test --features unstable").run()?;
69 let version = cmd!(sh, "cargo pkgid").read()?.rsplit_once('#').unwrap().1.to_string();
72 let current_branch = cmd!(sh, "git branch --show-current").read()?;
73 let has_tag = cmd!(sh, "git tag --list").read()?.lines().any(|it| it.trim() == tag);
74 let dry_run = sh.var("CI").is_err() || has_tag || current_branch != "master";
78 cmd!(sh, "cargo publish {dry_run_arg...}").run()?;
80 eprintln!("{}", cmd!(sh, "git tag {tag}"));
81 eprintln!("{}", cmd!(sh, "git push --tags"));
83 cmd!(sh, "git tag {tag}").run()?;
84 cmd!(sh, "git push --tags").run()?;
91 sh: &'a xshell::Shell,
94 cmd!(sh, "rustup toolchain install {toolchain} --no-self-update").run()?;
95 let res = sh.push_env("RUSTUP_TOOLCHAIN", toolchain);
96 cmd!(sh, "rustc --version").run()?;