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 18, 2019
1 parent f98f7b4 commit 33cf02c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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
4 changes: 3 additions & 1 deletion 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 -- $@
cd clippy_dev && cargo run -- "$@"

0 comments on commit 33cf02c

Please sign in to comment.