Skip to content

Commit 1c86ed4

Browse files
author
MarcoFalke
committed
Merge #19276: ci: Move travis workarounds to .travis.yml
fa71667 ci: Move travis workarounds to .travis.yml (MarcoFalke) Pull request description: It seems odd to have travis related workarounds in the general ci config files. Fix that oddity by moving the travis related workarounds to the travis yaml file. For unexplained reasons, this should also work around and thus close #19171 ACKs for top commit: hebasto: ACK fa71667, I have reviewed the code and it looks OK, I agree it can be merged. Tree-SHA512: b4419d38e2b41f6e4d6e6b7658f1d972c40c390a49fe78808f8640d28efd84cc6668ce292d45b7c539e65b9e2ecbad10e796cb8f9329a0f1e7d0132ce962d226
2 parents 75edf2c + fa71667 commit 1c86ed4

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,16 @@ before_install:
5353
install:
5454
- set -o errexit; source ./ci/test/04_install.sh
5555
before_script:
56-
- set -o errexit; source ./ci/test/05_before_script.sh
56+
# Temporary workaround for https://github.com/bitcoin/bitcoin/issues/16368
57+
- for i in {1..4}; do echo "$(sleep 500)" ; done &
58+
- set -o errexit; source ./ci/test/05_before_script.sh &> "/dev/null"
5759
script:
5860
- export CONTINUE=1
5961
- if [ $SECONDS -gt 1200 ]; then export CONTINUE=0; fi # Likely the depends build took very long
60-
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # Whitelisted repo (90 minutes build time)
62+
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # continue on repos with extended build time (90 minutes)
6163
- if [ $CONTINUE = "1" ]; then set -o errexit; source ./ci/test/06_script_a.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
6264
- if [ $SECONDS -gt 2000 ]; then export CONTINUE=0; fi # Likely the build took very long; The tests take about 1000s, so we should abort if we have less than 50*60-1000=2000s left
63-
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # Whitelisted repo (90 minutes build time)
65+
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # continue on repos with extended build time (90 minutes)
6466
- if [ $CONTINUE = "1" ]; then set -o errexit; source ./ci/test/06_script_b.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
6567
after_script:
6668
- echo $TRAVIS_COMMIT_RANGE

ci/test/05_before_script.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ if [ -z "$NO_DEPENDS" ]; then
3333
else
3434
SHELL_OPTS="CONFIG_SHELL="
3535
fi
36-
# Temporary workaround for https://github.com/bitcoin/bitcoin/issues/16368
37-
python3 -c 'import time; [print(".") or time.sleep(500) for _ in range(4)]' &
38-
( DOCKER_EXEC $SHELL_OPTS make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS ) &> /dev/null
36+
DOCKER_EXEC $SHELL_OPTS make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS
3937
fi
4038
if [ -n "$PREVIOUS_RELEASES_TO_DOWNLOAD" ]; then
4139
BEGIN_FOLD previous-versions

ci/test/06_script_b.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ if [ -n "$USE_VALGRIND" ]; then
2121
END_FOLD
2222
fi
2323

24-
bash -c "${CI_WAIT}" & # Print dots in case the tests take a long time to run
25-
2624
if [ "$RUN_UNIT_TESTS" = "true" ]; then
2725
BEGIN_FOLD unit-tests
2826
DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib make $MAKEJOBS check VERBOSE=1

0 commit comments

Comments
 (0)