diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2019-07-15 13:47:28 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2019-07-15 13:49:15 +0900 |
commit | d1e2650aca8ba340d98af22a08be20baf0abde0e (patch) | |
tree | 88cf332cfffe4b13f215d4b6d5d25e3c6ceced13 /.travis.yml | |
parent | 929fa856ef8a9217b58dc43c9883c3202603c18e (diff) | |
download | ruby-d1e2650aca8ba340d98af22a08be20baf0abde0e.tar.gz |
Force-fetch unicode update only when it's needed
nobu said that we could be banned if we aggressively downloaded unicode
file from Travis.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 56320ec118..36a9f8d157 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 - |- |