From 3c0b1872844f70e3e665e10037226d4e3656874b Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Fri, 30 Aug 2019 16:08:23 -0700 Subject: [PATCH] ci: Print some fuzz logs so that CI doesn't time out --- .travis.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 73d9223d..c0768336 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,7 +40,7 @@ matrix: # we do `cargo test`. # # We run these first because they take the longest. - - name: "fuzz (stable)" + - name: "fuzz-utils (stable)" rust: stable env: # 300 seconds = 5 minutes. @@ -67,6 +67,12 @@ matrix: script: | which cargo-fuzz || cargo install cargo-fuzz + + (for (( ; ; )); do + tail -n 100 fuzz.log || true + sleep 10 + done) & + # When the fuzzing fails, the logs are too big for Travis, so just # show the relevant tail portion of the log. cargo fuzz run wasm-opt-ttf -- -max_total_time=300 > fuzz.log 2>&1 || {