diff options
| author | Lzu Tao <taolzu@gmail.com> | 2019-11-05 21:36:44 +0700 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2019-11-05 21:36:44 +0700 |
| commit | a37bd8c376d4963c98f67c3c2fadcd3a8dcb8242 (patch) | |
| tree | 8183c0f987bc769d917dda0b4e1e2d82f6cf74ba | |
| parent | 000c3ff278852788bc88ce6a911050d02d39af93 (diff) | |
| download | rust-a37bd8c376d4963c98f67c3c2fadcd3a8dcb8242.tar.gz rust-a37bd8c376d4963c98f67c3c2fadcd3a8dcb8242.zip | |
build: avoid timing out in Travis
| -rwxr-xr-x | ci/integration-tests.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ci/integration-tests.sh b/ci/integration-tests.sh index 6d33224a59b..f6540769bb0 100755 --- a/ci/integration-tests.sh +++ b/ci/integration-tests.sh @@ -18,6 +18,8 @@ cd checkout # run clippy on a project, try to be verbose and trigger as many warnings # 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 \ cargo clippy \ --all-targets \ @@ -26,10 +28,9 @@ cargo clippy \ --cap-lints warn \ -W clippy::pedantic \ -W clippy::nursery \ - > clippy_output 2>&1 || true + 2>&1 | tee clippy_output cargo uninstall clippy -cat clippy_output if grep -q "internal compiler error\|query stack during panic\|E0463" clippy_output; then exit 1 |
