Skip to content

Commit 5e34798

Browse files
committed
travis: retry test deps setup as their dl regularly fail
Add a 'test-deps' make target to specifically build all dependencies for tests, like Nagelfar and Tcl8.3 download. Call this specific target in Travis CI through the `travis_retry` utility to retry dependency download if they fail.
1 parent fe23209 commit 5e34798

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ script:
337337
- $CMD_PREFIX ./configure $CONFIGURE_OPTS
338338
- $CMD_PREFIX make
339339
- if [ -n "$EXTRA_SCRIPT_PRETEST" ]; then $CMD_PREFIX eval $EXTRA_SCRIPT_PRETEST; fi
340+
- travis_retry $CMD_PREFIX make test-deps
340341
- travis_wait 25 unbuffer $CMD_PREFIX script/mt
341342
- if [ -n "$EXTRA_SCRIPT_POSTTEST" ]; then $CMD_PREFIX eval $EXTRA_SCRIPT_POSTTEST; fi
342343
- $CMD_PREFIX make install

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
install-testsiteconfig-1 install-testmodulerc install-testmodulerc-1 \
33
install-testinitrc install-testetcrc install-testmodspath \
44
install-testmodspath-empty uninstall-testconfig uninstall dist dist-tar \
5-
dist-gzip dist-bzip2 dist-win srpm rpm clean distclean test testinstall \
6-
testsyntax
5+
dist-gzip dist-bzip2 dist-win srpm rpm clean distclean test-deps test \
6+
testinstall testsyntax
77

88
# download command and its options
99
WGET := wget --timeout=5 --tries=2
@@ -639,6 +639,9 @@ ifeq ($(COVERAGE),y)
639639
export MODULECMD = $(MODULECMDTEST)_i
640640
endif
641641

642+
# specific target to build test dependencies
643+
test-deps: $(TEST_PREREQ)
644+
642645
# if coverage enabled create markup file for better read coverage result
643646
test: $(TEST_PREREQ)
644647
ifeq ($(compatversion) $(wildcard $(COMPAT_DIR)),y $(COMPAT_DIR))

0 commit comments

Comments
 (0)