Skip to content

Commit a37bd8c

Browse files
committed
build: avoid timing out in Travis
1 parent 000c3ff commit a37bd8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ci/integration-tests.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ cd checkout
1818

1919
# run clippy on a project, try to be verbose and trigger as many warnings
2020
# 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
2123
RUST_BACKTRACE=full \
2224
cargo clippy \
2325
--all-targets \
@@ -26,10 +28,9 @@ cargo clippy \
2628
--cap-lints warn \
2729
-W clippy::pedantic \
2830
-W clippy::nursery \
29-
> clippy_output 2>&1 || true
31+
2>&1 | tee clippy_output
3032

3133
cargo uninstall clippy
32-
cat clippy_output
3334

3435
if grep -q "internal compiler error\|query stack during panic\|E0463" clippy_output; then
3536
exit 1

0 commit comments

Comments
 (0)