]> git.lizzy.rs Git - rust.git/blob - ci/integration-tests.sh
Auto merge of #4702 - lzutao:build/debug-integration-clippy, r=phansch
[rust.git] / ci / integration-tests.sh
1 #!/usr/bin/env bash
2 set -x
3
4 if [[ -z "$INTEGRATION" ]]; then
5     exit 0
6 fi
7
8 rm ~/.cargo/bin/cargo-clippy
9 cargo install --force --debug --path .
10
11 echo "Running integration test for crate ${INTEGRATION}"
12
13 git clone --depth=1 "https://github.com/${INTEGRATION}.git" checkout
14 cd checkout || exit 1
15
16 # run clippy on a project, try to be verbose and trigger as many warnings as possible for greater coverage
17 RUST_BACKTRACE=full \
18 cargo clippy \
19     --all-targets \
20     --all-features \
21     -- --cap-lints warn -W clippy::pedantic -W clippy::nursery \
22     2>& 1 \
23 | tee clippy_output
24
25 if grep -q "internal compiler error\|query stack during panic\|E0463" clippy_output; then
26     exit 1
27 fi