[bitcoin/bitcoin] travis: Enable Qt build for Windows , i686 and arm Linux (#13515)

scravy commented on this pull request.

> — — OUTDIR=$BASE_OUTDIR/$TRAVIS_PULL_REQUEST/$TRAVIS_JOB_NUMBER-$HOST
— — BITCOIN_CONFIG_ALL=»—disable-dependency-tracking —prefix=$TRAVIS_BUILD_DIR/depends/$HOST —bindir=$OUTDIR/bin —libdir=$OUTDIR/lib»
— — if [ -z «$NO_DEPENDS» ]; then DOCKER_EXEC ccache —max-size=$CCACHE_SIZE; fi
— — BEGIN_FOLD autogen; test -n «$CONFIG_SHELL» && DOCKER_EXEC «$CONFIG_SHELL» -c «./autogen.sh» || DOCKER_EXEC ./autogen.sh; END_FOLD
— — mkdir build && cd build
— — BEGIN_FOLD configure; DOCKER_EXEC ../configure —cache-file=config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false); END_FOLD
— — BEGIN_FOLD distdir; DOCKER_EXEC make distdir VERSION=$HOST; END_FOLD
— — cd bitcoin-$HOST
— — BEGIN_FOLD configure; DOCKER_EXEC ./configure —cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( cat config.log && false); END_FOLD
— — BEGIN_FOLD build; DOCKER_EXEC make $MAKEJOBS $GOAL || ( echo «Build failure. Verbose build follows.» && DOCKER_EXEC make $GOAL V=1 ; false ); END_FOLD
— — if [ «$RUN_TESTS» = «true» ]; then BEGIN_FOLD unit-tests; DOCKER_EXEC LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib make $MAKEJOBS check VERBOSE=1; END_FOLD; fi
— — if [ «$TRAVIS_EVENT_TYPE» = «cron» ]; then extended=»—extended —exclude feature_pruning,feature_dbcrash»; fi
— — if [ «$RUN_TESTS» = «true» ]; then BEGIN_FOLD functional-tests; DOCKER_EXEC test/functional/test_runner.py —combinedlogslen=4000 —coverage —quiet —failfast ${extended}; END_FOLD; fi
+ # Skip Bitcoin Core build if depends build take more than 20 mins.
+ — |
+ ( test $SECONDS -lt 1200 || ( echo Travis early exit to cache current state && false ) ) && (

This could simply be its own line in the `script` section.

I really like the rest of the script to be joined into a single block using the `|` YAML goodness, but putting this check on an individual line (`- …`) would spare the `) && ( LOTSOFLINES )` awkwardness.

«`- test $SECONDS -lt 1200 || ( echo … ; exit 1 )«`

Добавить комментарий