Set URLCACHE to JuliaLang cache server for Travis builds
Download Unicode data from upstream server by default. Download GNU Unifont from reliable GNU mirror by default.
This commit is contained in:
@@ -15,3 +15,7 @@ script:
|
|||||||
- make data && diff data/utf8proc_data.c.new utf8proc_data.c
|
- make data && diff data/utf8proc_data.c.new utf8proc_data.c
|
||||||
- (mkdir build_static && cd build_static && cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON && make)
|
- (mkdir build_static && cd build_static && cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON && make)
|
||||||
- (mkdir build_shared && cd build_shared && cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=ON && make)
|
- (mkdir build_shared && cd build_shared && cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=ON && make)
|
||||||
|
env:
|
||||||
|
# use JuliaLang caching (https://github.com/staticfloat/cache.julialang.org)
|
||||||
|
# so that Travis builds do not depend on anyone's flaky servers but our own
|
||||||
|
- URLCACHE=https://cache.e.ip.saba.us/
|
||||||
|
|||||||
@@ -12,10 +12,6 @@ JULIA=julia
|
|||||||
FONTFORGE=fontforge
|
FONTFORGE=fontforge
|
||||||
CURLFLAGS = --retry 5 --location
|
CURLFLAGS = --retry 5 --location
|
||||||
|
|
||||||
# use JuliaLang caching (https://github.com/staticfloat/cache.julialang.org)
|
|
||||||
# so that Travis builds do not depend on anyone's flaky servers but our own
|
|
||||||
URLCACHE=https://cache.e.ip.saba.us/
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
|
||||||
.DELETE_ON_ERROR:
|
.DELETE_ON_ERROR:
|
||||||
@@ -27,10 +23,10 @@ utf8proc_data.c.new: data_generator.rb UnicodeData.txt GraphemeBreakProperty.txt
|
|||||||
UNIFONT_VERSION=8.0.01
|
UNIFONT_VERSION=8.0.01
|
||||||
|
|
||||||
unifont.ttf:
|
unifont.ttf:
|
||||||
$(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)http://unifoundry.com/pub/unifont-$(UNIFONT_VERSION)/font-builds/unifont-$(UNIFONT_VERSION).ttf
|
$(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://mirrors.kernel.org/gnu/unifont/unifont-$(UNIFONT_VERSION)/unifont-$(UNIFONT_VERSION).ttf
|
||||||
|
|
||||||
unifont_upper.ttf:
|
unifont_upper.ttf:
|
||||||
$(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)http://unifoundry.com/pub/unifont-$(UNIFONT_VERSION)/font-builds/unifont_upper-$(UNIFONT_VERSION).ttf
|
$(CURL) $(CURLFLAGS) -o $@ $(URLCACHE)https://mirrors.kernel.org/gnu/unifont/unifont-$(UNIFONT_VERSION)/unifont_upper-$(UNIFONT_VERSION).ttf
|
||||||
|
|
||||||
%.sfd: %.ttf
|
%.sfd: %.ttf
|
||||||
$(FONTFORGE) -lang=ff -c "Open(\"$<\");Save(\"$@\");Quit(0);"
|
$(FONTFORGE) -lang=ff -c "Open(\"$<\");Save(\"$@\");Quit(0);"
|
||||||
|
|||||||
Reference in New Issue
Block a user