Skip to content

Commit 27e88b6

Browse files
committed
build: use shared target dir
1 parent ac8b4c3 commit 27e88b6

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ci/base-tests.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
set -ex
33

4+
# for faster build, share target dir between subcrates
5+
CARGO_TARGET_DIR=$(pwd)/target/
6+
export CARGO_TARGET_DIR
7+
48
echo "Running clippy base tests"
59

610
PATH=$PATH:./node_modules/.bin
@@ -10,9 +14,7 @@ fi
1014
# build clippy in debug mode and run tests
1115
cargo build --features "debugging deny-warnings"
1216
cargo test --features "debugging deny-warnings"
13-
# for faster build, share target dir between subcrates
14-
CARGO_TARGET_DIR=$(pwd)/target/
15-
export CARGO_TARGET_DIR
17+
1618
(cd clippy_lints && cargo test)
1719
(cd rustc_tools_util && cargo test)
1820
(cd clippy_dev && cargo test)

util/dev

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
#!/bin/sh
22

3+
CARGO_TARGET_DIR=$(pwd)/target/
4+
export CARGO_TARGET_DIR
35
cd clippy_dev && cargo run -- $@

0 commit comments

Comments
 (0)