зеркало из https://github.com/github/ruby.git
.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
This commit is contained in:
Родитель
2be1cf45c1
Коммит
493955c692
10
.travis.yml
10
.travis.yml
|
@ -61,6 +61,7 @@ cache:
|
||||||
ccache: true
|
ccache: true
|
||||||
directories:
|
directories:
|
||||||
- $HOME/config_2nd
|
- $HOME/config_2nd
|
||||||
|
- $HOME/.downloaded-cache
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
@ -319,11 +320,14 @@ before_script:
|
||||||
- $SETARCH uname -r
|
- $SETARCH uname -r
|
||||||
- rm -fr .ext autom4te.cache
|
- rm -fr .ext autom4te.cache
|
||||||
- echo $TERM
|
- echo $TERM
|
||||||
|
- |-
|
||||||
|
[ -d ~/.downloaded-cache ] ||
|
||||||
|
mkdir ~/.downloaded-cache
|
||||||
|
- ln -s ~/.downloaded-cache
|
||||||
- "> config.status"
|
- "> config.status"
|
||||||
- sed -f tool/prereq.status Makefile.in common.mk > Makefile
|
- sed -f tool/prereq.status Makefile.in common.mk > Makefile
|
||||||
- make update-config_files
|
- make -s $JOBS update-download
|
||||||
- make touch-unicode-files
|
- make -s $JOBS srcs
|
||||||
- make -s $JOBS srcs UNICODE_FILES=.
|
|
||||||
- rm config.status Makefile rbconfig.rb .rbconfig.time
|
- rm config.status Makefile rbconfig.rb .rbconfig.time
|
||||||
- |-
|
- |-
|
||||||
if [ -d ~/config_2nd ]; then
|
if [ -d ~/config_2nd ]; then
|
||||||
|
|
|
@ -1221,7 +1221,7 @@ update-mspec:
|
||||||
update-rubyspec:
|
update-rubyspec:
|
||||||
|
|
||||||
update-config_files: PHONY
|
update-config_files: PHONY
|
||||||
$(Q) $(BASERUBY) -C "$(srcdir)" tool/downloader.rb -d tool -e gnu \
|
$(Q) $(BASERUBY) -C "$(srcdir)" tool/downloader.rb -d tool --cache-dir=$(CACHE_DIR) -e gnu \
|
||||||
config.guess config.sub
|
config.guess config.sub
|
||||||
|
|
||||||
update-gems: PHONY
|
update-gems: PHONY
|
||||||
|
@ -1313,7 +1313,7 @@ UNICODE_EMOJI_FILES = \
|
||||||
$(UNICODE_SRC_EMOJI_DATA_DIR)/emoji-zwj-sequences.txt \
|
$(UNICODE_SRC_EMOJI_DATA_DIR)/emoji-zwj-sequences.txt \
|
||||||
$(empty)
|
$(empty)
|
||||||
|
|
||||||
update-unicode: $(UNICODE_FILES)
|
update-unicode: $(UNICODE_FILES) $(UNICODE_PROPERTY_FILES)
|
||||||
|
|
||||||
CACHE_DIR = $(srcdir)/.downloaded-cache
|
CACHE_DIR = $(srcdir)/.downloaded-cache
|
||||||
UNICODE_DOWNLOAD = \
|
UNICODE_DOWNLOAD = \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче