1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Force-fetch unicode update only when it's needed

nobu said that we could be banned if we aggressively downloaded unicode
file from Travis.
This commit is contained in:
Takashi Kokubun 2019-07-15 13:47:28 +09:00
parent 929fa856ef
commit d1e2650aca
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -334,8 +334,6 @@ env:
- TEST_ALL_ISOLATED_TESTS="../test/ruby/test_gc_compact.rb"
# Disabling -j3 because it seems to cause a hang on building Ruby: https://travis-ci.org/ruby/ruby/jobs/471021727
- JOBS=
# Prevent random failure by missing build dependency like https://travis-ci.org/ruby/ruby/jobs/558571461
- ALWAYS_UPDATE_UNICODE=yes
- &dependency
name: Check dependencies in makefiles
@ -415,7 +413,12 @@ before_script:
- "> .rbconfig.time"
- sed -f tool/prereq.status template/Makefile.in common.mk > Makefile
- date; make touch-unicode-files
- date; make -s $JOBS $UPDATE_UNICODE up
- |-
date
if ! make -s $JOBS $UPDATE_UNICODE up; then
# Prevent random failure by missing build dependency like https://travis-ci.org/ruby/ruby/jobs/558571461
make -s $JOBS $UPDATE_UNICODE ALWAYS_UPDATE_UNICODE=yes up
fi
- date; make -s $JOBS srcs
- rm -f config.status Makefile rbconfig.rb .rbconfig.time
- |-