mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-09-21 07:01:54 +00:00
build: avoid timing out in Travis
This commit is contained in:
parent
000c3ff278
commit
a37bd8c376
1 changed files with 3 additions and 2 deletions
|
@ -18,6 +18,8 @@ cd checkout
|
||||||
|
|
||||||
# run clippy on a project, try to be verbose and trigger as many warnings
|
# run clippy on a project, try to be verbose and trigger as many warnings
|
||||||
# as possible for greater coverage
|
# as possible for greater coverage
|
||||||
|
# NOTE: we use `tee` to print any warnings and errors to stdout
|
||||||
|
# to avoid build timeout in Travis
|
||||||
RUST_BACKTRACE=full \
|
RUST_BACKTRACE=full \
|
||||||
cargo clippy \
|
cargo clippy \
|
||||||
--all-targets \
|
--all-targets \
|
||||||
|
@ -26,10 +28,9 @@ cargo clippy \
|
||||||
--cap-lints warn \
|
--cap-lints warn \
|
||||||
-W clippy::pedantic \
|
-W clippy::pedantic \
|
||||||
-W clippy::nursery \
|
-W clippy::nursery \
|
||||||
> clippy_output 2>&1 || true
|
2>&1 | tee clippy_output
|
||||||
|
|
||||||
cargo uninstall clippy
|
cargo uninstall clippy
|
||||||
cat clippy_output
|
|
||||||
|
|
||||||
if grep -q "internal compiler error\|query stack during panic\|E0463" clippy_output; then
|
if grep -q "internal compiler error\|query stack during panic\|E0463" clippy_output; then
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue