Skip to content

Commit 34dc078

Browse files
committed
tests: execute dogfood tests with incremental compilation disabled
reduces target/ dir size of when "cago test"ing by around 2 gigs.
1 parent 6ca5b20 commit 34dc078

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/dogfood.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fn dogfood() {
1212
let output = std::process::Command::new(clippy_cmd)
1313
.current_dir(root_dir)
1414
.env("CLIPPY_DOGFOOD", "1")
15+
.env("CARGO_INCREMENTAL", "0")
1516
.arg("clippy-preview")
1617
.arg("--all-targets")
1718
.arg("--all-features")
@@ -50,6 +51,7 @@ fn dogfood_tests() {
5051
let output = std::process::Command::new(&clippy_cmd)
5152
.current_dir(root_dir.join(d))
5253
.env("CLIPPY_DOGFOOD", "1")
54+
.env("CARGO_INCREMENTAL", "0")
5355
.arg("clippy")
5456
.arg("--")
5557
.args(&["-D", "clippy::all"])

0 commit comments

Comments
 (0)