8000 .travis.yml: cache unicode.org files · github/ruby@493955c · GitHub
[go: up one dir, main page]

Skip to content

Commit 493955c

Browse files
committed
.travis.yml: cache unicode.org files
Before this changeset (since r58071) we did not download files from unicode.org but just touch some files. This is a kind of hack that people normally don't do at home. We are caching other files between builds now. Why not also save those files downloaded from elsewhere. This covers more realistic workload, I guess. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 2be1cf4 commit 493955c

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.travis.yml

Lines changed: 7 additions & 3 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 src 8000 s
327331
- rm config.status Makefile rbconfig.rb .rbconfig.time
328332
- |-
329333
if [ -d ~/config_2nd ]; then

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)
0