mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-16 01:05:02 +01:00
speed up tests by doing rustup which
`cargo test` goes from 2.4s to 1.6s
This commit is contained in:
parent
ea5fb6e4ba
commit
50dc094ddd
7 changed files with 99 additions and 34 deletions
|
|
@ -1,8 +1,10 @@
|
|||
use anyhow::bail;
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
let cargo = std::env::var("MINIMIZE_CARGO").expect("MINIMIZE_CARGO");
|
||||
|
||||
if std::env::var("MINIMIZE_LINTS").as_deref() == Ok("1") {
|
||||
std::process::Command::new("cargo")
|
||||
std::process::Command::new(&cargo)
|
||||
.arg("check")
|
||||
.spawn()
|
||||
.unwrap()
|
||||
|
|
@ -18,7 +20,7 @@ fn main() -> anyhow::Result<()> {
|
|||
|
||||
testsuite::ensure_roots_kept(&proj_dir, roots)?;
|
||||
|
||||
let check = std::process::Command::new("cargo")
|
||||
let check = std::process::Command::new(&cargo)
|
||||
.arg("check")
|
||||
.spawn()
|
||||
.unwrap()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue