File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -ex
3
3
4
+ # for faster build, share target dir between subcrates
5
+ CARGO_TARGET_DIR=$( pwd) /target/
6
+ export CARGO_TARGET_DIR
7
+
4
8
echo " Running clippy base tests"
5
9
6
10
PATH=$PATH :./node_modules/.bin
10
14
# build clippy in debug mode and run tests
11
15
cargo build --features " debugging deny-warnings"
12
16
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
+
16
18
(cd clippy_lints && cargo test)
17
19
(cd rustc_tools_util && cargo test)
18
20
(cd clippy_dev && cargo test)
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ if [[ -z "$INTEGRATION" ]]; then
5
5
exit 0
6
6
fi
7
7
8
+ CARGO_TARGET_DIR=$( pwd) /target/
9
+ export CARGO_TARGET_DIR
10
+
8
11
rm ~ /.cargo/bin/cargo-clippy
9
12
cargo install --force --debug --path .
10
13
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
+ CARGO_TARGET_DIR=$( pwd) /target/
3
+ export CARGO_TARGET_DIR
2
4
3
- cd clippy_dev && cargo run -- $@
5
+ cd clippy_dev && cargo run -- " $@ "
You can’t perform that action at this time.
0 commit comments