Changeset 973be387 in mainline


Ignore:
Timestamp:
2018-03-16T10:27:39Z (6 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
013e5d32, 4b1c7c6f, 6be2c13, 94d211e, a24df004, e59627e
Parents:
530f2de
git-author:
Vojtech Horky <vojtech.horky@…> (2018-03-16 10:27:39)
git-committer:
GitHub <noreply@…> (2018-03-16 10:27:39)
Message:

Fix Travis time-outs for ia32

Travis kills a job that does not produce any output for a long time. But it also kills a job with too much of output. So, for harbour builds, print only few lines as not to stall the output as well as not to overload it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/travis.sh

    r530f2de r973be387  
    186186            "$HOME/helenos-harbours/hsct.sh" update || exit 1
    187187
     188            # We cannot flood the output as Travis has limit of maximum output size
     189            # (reason is to prevent endless stacktraces going forever). But also Travis
     190            # kills a job that does not print anything for a while.
     191            #
     192            # So we store the full output into a file but print every 100th line.
     193            # As pipe tends to hide errors we check the success by checking that archive
     194            # exists.
     195            #
    188196            FAILED_HARBOURS=""
    189197            for HARBOUR in $H_HARBOUR_LIST; do
    190                 "$HOME/helenos-harbours/hsct.sh" archive --no-deps "$HARBOUR" >"run-$HARBOUR.log" 2>&1
     198                "$HOME/helenos-harbours/hsct.sh" archive --no-deps "$HARBOUR" 2>&1 | tee "run-$HARBOUR.log" | awk '!(NR%100)'
     199               
     200                test -s "archives/$HARBOUR.tar.xz"
    191201                if [ $? -eq 0 ]; then
    192202                    tail -n 10 "run-$HARBOUR.log"
Note: See TracChangeset for help on using the changeset viewer.