tests: execute dogfood tests with incremental compilation disabled

reduces target/ dir size of when "cago test"ing by around 2 gigs.
This commit is contained in:
Matthias Krüger 2019-09-06 19:35:20 +02:00
parent 6ca5b2053a
commit 34dc07863d

View file

@ -12,6 +12,7 @@ fn dogfood() {
let output = std::process::Command::new(clippy_cmd)
.current_dir(root_dir)
.env("CLIPPY_DOGFOOD", "1")
.env("CARGO_INCREMENTAL", "0")
.arg("clippy-preview")
.arg("--all-targets")
.arg("--all-features")
@ -50,6 +51,7 @@ fn dogfood_tests() {
let output = std::process::Command::new(&clippy_cmd)
.current_dir(root_dir.join(d))
.env("CLIPPY_DOGFOOD", "1")
.env("CARGO_INCREMENTAL", "0")
.arg("clippy")
.arg("--")
.args(&["-D", "clippy::all"])