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
20 # as possible for greater coverage
21 # NOTE: we use `tee` to print any warnings and errors to stdout
22 # to avoid build timeout in Travis
31 2>&1 | tee clippy_output
33 cargo uninstall clippy
35 if grep -q "internal compiler error\|query stack during panic\|E0463" clippy_output; then