File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -6,22 +6,27 @@ if [[ -z "$INTEGRATION" ]]; then
6
6
fi
7
7
8
8
rm ~ /.cargo/bin/cargo-clippy
9
- cargo install --force --debug --path .
9
+ cargo install --force --debug --path . || exit 1
10
10
11
11
echo " Running integration test for crate ${INTEGRATION} "
12
12
13
- git clone --depth=1 " https://github.com/${INTEGRATION} .git" checkout
13
+ git clone --depth=1 " https://github.com/${INTEGRATION} .git" checkout || exit 1
14
14
cd checkout || exit 1
15
15
16
16
# run clippy on a project, try to be verbose and trigger as many warnings as possible for greater coverage
17
17
RUST_BACKTRACE=full \
18
18
cargo clippy \
19
19
--all-targets \
20
20
--all-features \
21
- -- --cap-lints warn -W clippy::pedantic -W clippy::nursery \
22
- 2>& 1 \
23
- | tee clippy_output
21
+ -- \
22
+ --cap-lints warn \
23
+ -W clippy::pedantic \
24
+ -W clippy::nursery \
25
+ > clippy_output 2>&1
26
+ ERRNO=$?
24
27
25
- if grep -q " internal compiler error\|query stack during panic\|E0463" clippy_output; then
28
+ cat clippy_output
29
+
30
+ if grep -q " internal compiler error\|query stack during panic\|E0463" clippy_output || [[ $ERRNO -ne 0 ]]; then
26
31
exit 1
27
32
fi
You can’t perform that action at this time.
0 commit comments