Skip to content

Commit 02512c1

Browse files
committed
Auto merge of #3522 - matthiaskrgr:target_dir, r=phansch
travis: base-tests: share CARGO_TARGET_DIR between check runs of subcrates to avoid unnecessarily recompiling deps.
2 parents 1fbcbe4 + 31d3bd9 commit 02512c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ci/base-tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ fi
2020
# build clippy in debug mode and run tests
2121
cargo build --features debugging
2222
cargo test --features debugging
23+
# for faster build, share target dir between subcrates
24+
export CARGO_TARGET_DIR=`pwd`/target/
2325
cd clippy_lints && cargo test && cd ..
2426
cd rustc_tools_util && cargo test && cd ..
2527
cd clippy_dev && cargo test && cd ..

0 commit comments

Comments
 (0)