4 if [[ -z "$INTEGRATION" ]]; then
8 CARGO_TARGET_DIR=$(pwd)/target/
9 export CARGO_TARGET_DIR
11 rm ~/.cargo/bin/cargo-clippy
12 cargo install --force --debug --path .
14 echo "Running integration test for crate ${INTEGRATION}"
16 git clone --depth=1 "https://github.com/${INTEGRATION}.git" checkout
19 # run clippy on a project, try to be verbose and trigger as many warnings as possible for greater coverage
24 -- --cap-lints warn -W clippy::pedantic -W clippy::nursery \
28 if grep -q "internal compiler error\|query stack during panic\|E0463" clippy_output; then