Skip to content

Commit

Permalink
build: use shared target dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Oct 17, 2019
1 parent ac8b4c3 commit 27e88b6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ci/base-tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -ex

# for faster build, share target dir between subcrates
CARGO_TARGET_DIR=$(pwd)/target/
export CARGO_TARGET_DIR

echo "Running clippy base tests"

PATH=$PATH:./node_modules/.bin
Expand All @@ -10,9 +14,7 @@ fi
# build clippy in debug mode and run tests
cargo build --features "debugging deny-warnings"
cargo test --features "debugging deny-warnings"
# for faster build, share target dir between subcrates
CARGO_TARGET_DIR=$(pwd)/target/
export CARGO_TARGET_DIR

(cd clippy_lints && cargo test)
(cd rustc_tools_util && cargo test)
(cd clippy_dev && cargo test)
Expand Down
2 changes: 2 additions & 0 deletions util/dev
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh

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

0 comments on commit 27e88b6

Please sign in to comment.