Skip to content

Commit 782ee5e

Browse files
committed
.travis.yml: cache the downloaded unicode files
1 parent 77ac4df commit 782ee5e

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ cache:
6161
ccache: true
6262
directories:
6363
- $HOME/config_2nd
64+
- $HOME/.downloaded-cache
6465

6566
env:
6667
global:
@@ -319,11 +320,14 @@ before_script:
319320
- $SETARCH uname -r
320321
- rm -fr .ext autom4te.cache
321322
- echo $TERM
323+
- |-
324+
[ -d ~/.downloaded-cache ] ||
325+
mkdir ~/.downloaded-cache
326+
- ln -s ~/.downloaded-cache
322327
- "> config.status"
323328
- sed -f tool/prereq.status Makefile.in common.mk > Makefile
324-
- make update-config_files
325-
- make touch-unicode-files
326-
- make -s $JOBS srcs UNICODE_FILES=.
329+
- make -s $JOBS update-download
330+
- make -s $JOBS srcs
327331
- rm config.status Makefile rbconfig.rb .rbconfig.time
328332
- |-
329333
if [ -d ~/config_2nd ]; then
@@ -356,7 +360,9 @@ before_script:
356360
- chmod u-w ..
357361
- $SETARCH make -s $JOBS && make install
358362
- ccache --show-stats
359-
- [ -z "${GEMS_FOR_TEST}" ] || $RUBY_PREFIX/bin/gem install --no-document $GEMS_FOR_TEST
363+
- |-
364+
[ -z "${GEMS_FOR_TEST}" ] ||
365+
$RUBY_PREFIX/bin/gem install --no-document $GEMS_FOR_TEST
360366
361367
script:
362368
- $SETARCH make -s test TESTOPTS="${TESTOPTS=$JOBS -q --tty=no}"

common.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ update-mspec:
12211221
update-rubyspec:
12221222

12231223
update-config_files: PHONY
1224-
$(Q) $(BASERUBY) -C "$(srcdir)" tool/downloader.rb -d tool -e gnu \
1224+
$(Q) $(BASERUBY) -C "$(srcdir)" tool/downloader.rb -d tool --cache-dir=$(CACHE_DIR) -e gnu \
12251225
config.guess config.sub
12261226

12271227
update-gems: PHONY
@@ -1313,7 +1313,7 @@ UNICODE_EMOJI_FILES = \
13131313
$(UNICODE_SRC_EMOJI_DATA_DIR)/emoji-zwj-sequences.txt \
13141314
$(empty)
13151315

1316-
update-unicode: $(UNICODE_FILES)
1316+
update-unicode: $(UNICODE_FILES) $(UNICODE_PROPERTY_FILES)
13171317

13181318
CACHE_DIR = $(srcdir)/.downloaded-cache
13191319
UNICODE_DOWNLOAD = \

0 commit comments

Comments
 (0)