From 31d3bd92be7fd073beaece348193a78d4964b3e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Sun, 9 Dec 2018 22:47:22 +0100 Subject: [PATCH] travis: base-tests: share CARGO_TARGET_DIR between check runs of subcrates to avoid unneccessarily recompiling deps. --- ci/base-tests.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/base-tests.sh b/ci/base-tests.sh index 2537f157ad98..da87134f59f5 100755 --- a/ci/base-tests.sh +++ b/ci/base-tests.sh @@ -20,6 +20,8 @@ fi # build clippy in debug mode and run tests cargo build --features debugging cargo test --features debugging +# for faster build, share target dir between subcrates +export CARGO_TARGET_DIR=`pwd`/target/ cd clippy_lints && cargo test && cd .. cd rustc_tools_util && cargo test && cd .. cd clippy_dev && cargo test && cd ..