Skip to content

Commit

Permalink
tests: execute dogfood tests with incremental compilation disabled
Browse files Browse the repository at this point in the history
reduces target/ dir size of when "cago test"ing by around 2 gigs.
  • Loading branch information
matthiaskrgr committed Sep 11, 2019
1 parent 6ca5b20 commit 34dc078
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/dogfood.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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"])
Expand Down

0 comments on commit 34dc078

Please sign in to comment.