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

Skip to content

Commit 537a8c9

Browse files
authored
Merge pull request #16848 from QuLogic/update-ci
Cleanup CI setup
2 parents 5679c28 + 0ac5ba7 commit 537a8c9

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

.circleci/config.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ version: 2.1
1111
apt-run: &apt-install
1212
name: Install apt packages
1313
command: |
14-
sudo apt-get -qq update
15-
sudo apt-get install -y \
14+
sudo apt -qq update
15+
sudo apt install -y \
1616
inkscape \
1717
ffmpeg \
1818
dvipng \
@@ -25,35 +25,22 @@ apt-run: &apt-install
2525
texlive-pictures \
2626
texlive-xetex \
2727
graphviz \
28-
libgeos-dev \
2928
fonts-crosextra-carlito \
30-
fonts-freefont-otf
29+
fonts-freefont-otf \
30+
fonts-humor-sans
3131
3232
fonts-run: &fonts-install
3333
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.
3834
command: |
3935
mkdir -p ~/.local/share/fonts
4036
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
5037
fc-cache -f -v
5138
save_cache:
52-
key: fonts-1
39+
key: fonts-2
5340
paths:
5441
- ~/.local/share/fonts/
5542
restore_cache:
56-
key: fonts-1
43+
key: fonts-2
5744

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

azure-pipelines.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ steps:
5959
set -e
6060
case "$(python -c 'import sys; print(sys.platform)')" in
6161
linux)
62-
sudo apt-get update
63-
sudo apt-get install \
62+
sudo apt update
63+
sudo apt install \
6464
cm-super \
6565
dvipng \
6666
ffmpeg \
@@ -69,7 +69,6 @@ steps:
6969
graphviz \
7070
inkscape \
7171
libcairo2 \
72-
libgeos-dev \
7372
libgirepository-1.0.1 \
7473
lmodern \
7574
fonts-freefont-otf \

0 commit comments

Comments
 (0)