Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b7ad5f

Browse files
committed
ci: Install Humor Sans from package repositories.
It's available in all Debian versions directly now.
1 parent 7127304 commit 2b7ad5f

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.circleci/config.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,33 +27,21 @@ apt-run: &apt-install
2727
graphviz \
2828
libgeos-dev \
2929
fonts-crosextra-carlito \
30-
fonts-freefont-otf
30+
fonts-freefont-otf \
31+
fonts-humor-sans
3132
3233
fonts-run: &fonts-install
3334
name: Install custom fonts
34-
# We manually install Humor-Sans using the package from Ubuntu 14.10.
35-
# Unfortunately humor sans is not available in the Ubuntu version used by
36-
# CircleCI but we can manually install the deb from a later version since
37-
# it is basically just a .ttf file.
3835
command: |
3936
mkdir -p ~/.local/share/fonts
4037
wget -nc https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O ~/.local/share/fonts/Felipa-Regular.ttf || true
41-
if [ ! -f ~/.local/share/fonts/Humor-Sans.ttf ]; then
42-
wget http://http.us.debian.org/debian/pool/main/f/fonts-humor-sans/fonts-humor-sans_1.0-3_all.deb
43-
mkdir tmp
44-
dpkg -x fonts-humor-sans_1.0-3_all.deb tmp
45-
cp tmp/usr/share/fonts/truetype/humor-sans/Humor-Sans.ttf ~/.local/share/fonts
46-
rm -rf tmp
47-
else
48-
echo "Not downloading Humor-Sans; file already exists."
49-
fi
5038
fc-cache -f -v
5139
save_cache:
52-
key: fonts-1
40+
key: fonts-2
5341
paths:
5442
- ~/.local/share/fonts/
5543
restore_cache:
56-
key: fonts-1
44+
key: fonts-2
5745

5846
pip-run: &pip-install
5947
# Upgrade pip and setuptools and wheel to get as clean an install as possible

0 commit comments

Comments
 (0)