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

Skip to content

Commit 987cd16

Browse files
committed
Circle: Make font install into a re-usable config.
This allows it to embed multiple steps.
1 parent 04bd65b commit 987cd16

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

.circleci/config.yml

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,22 @@ apt-run: &apt-install
2929
fonts-freefont-otf \
3030
fonts-humor-sans
3131
32-
fonts-run: &fonts-install
33-
- restore_cache:
34-
key: fonts-2
35-
- run:
36-
name: Install custom fonts
37-
command: |
38-
mkdir -p ~/.local/share/fonts
39-
wget -nc https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O ~/.local/share/fonts/Felipa-Regular.ttf || true
40-
fc-cache -f -v
41-
- save_cache:
42-
key: fonts-2
43-
paths:
44-
- ~/.local/share/fonts/
32+
commands:
33+
fonts-install:
34+
description: Install custom fonts
35+
steps:
36+
- restore_cache:
37+
key: fonts-2
38+
- run:
39+
name: Install custom fonts
40+
command: |
41+
mkdir -p ~/.local/share/fonts
42+
wget -nc https://github.com/google/fonts/blob/master/ofl/felipa/Felipa-Regular.ttf?raw=true -O ~/.local/share/fonts/Felipa-Regular.ttf || true
43+
fc-cache -f -v
44+
- save_cache:
45+
key: fonts-2
46+
paths:
47+
- ~/.local/share/fonts/
4548

4649
pip-run: &pip-install
4750
# Upgrade pip and setuptools and wheel to get as clean an install as possible
@@ -88,7 +91,7 @@ jobs:
8891
- checkout
8992

9093
- run: *apt-install
91-
- *fonts-install
94+
- fonts-install
9295
- run: *pip-install
9396
- run:
9497
<<: *deps-install
@@ -112,7 +115,7 @@ jobs:
112115
- checkout
113116

114117
- run: *apt-install
115-
- *fonts-install
118+
- fonts-install
116119
- run: *pip-install
117120

118121
- run: *deps-install
@@ -134,7 +137,7 @@ jobs:
134137
- checkout
135138

136139
- run: *apt-install
137-
- *fonts-install
140+
- fonts-install
138141
- run: *pip-install
139142

140143
- run: *deps-install

0 commit comments

Comments
 (0)