99 @echo " ###"
1010 @echo
1111 @echo " make build: Builds the fonts and places them in the fonts/ directory"
12- @echo " make test: Tests the fonts with fontbakery "
12+ @echo " make test: Tests the fonts with fontspector "
1313 @echo " make proof: Creates HTML proof documents in the proof/ directory"
1414 @echo " make images: Creates PNG specimen images in the documentation/ directory"
1515 @echo
@@ -18,8 +18,6 @@ build: build.stamp
1818
1919venv : venv/touchfile
2020
21- venv-test : venv-test/touchfile
22-
2321customize : venv
2422 . venv/bin/activate; python3 scripts/customize.py
2523
@@ -32,13 +30,9 @@ venv/touchfile: requirements.txt
3230 . venv/bin/activate; pip install -Ur requirements.txt
3331 touch venv/touchfile
3432
35- venv-test/touchfile : requirements-test.txt
36- test -d venv-test || python3 -m venv venv-test
37- . venv-test/bin/activate; pip install -Ur requirements-test.txt
38- touch venv-test/touchfile
39-
40- test : venv-test build.stamp
41- TOCHECK=$$(find fonts/variable -type f 2>/dev/null ) ; if [ -z " $$ TOCHECK" ]; then TOCHECK=$$ (find fonts/ttf -type f 2> /dev/null); fi ; . venv-test/bin/activate; mkdir -p out/ out/fontbakery; fontbakery check-googlefonts -l WARN --full-lists --succinct --badges out/badges --html out/fontbakery/fontbakery-report.html --ghmarkdown out/fontbakery/fontbakery-report.md $$ TOCHECK || echo ' ::warning file=sources/config.yaml,title=Fontbakery failures::The fontbakery QA check reported errors in your font. Please check the generated report.'
33+ test : build.stamp
34+ which fontspector || (echo " fontspector not found. Please install it with 'cargo install fontspector'." && exit 1)
35+ TOCHECK=$$(find fonts/variable -type f 2>/dev/null ) ; if [ -z " $$ TOCHECK" ]; then TOCHECK=$$ (find fonts/ttf -type f 2> /dev/null); fi ; mkdir -p out/ out/fontspector; fontspector --profile googlefonts -l warn --full-lists --succinct --html out/fontspector/fontspector-report.html --ghmarkdown out/fontspector/fontspector-report.md --badges out/badges $$ TOCHECK || echo ' ::warning file=sources/config.yaml,title=fontspector failures::The fontspector QA check reported errors in your font. Please check the generated report.'
4236
4337proof : venv build.stamp
4438 TOCHECK=$$(find fonts/variable -type f 2>/dev/null ) ; if [ -z " $$ TOCHECK" ]; then TOCHECK=$$ (find fonts/ttf -type f 2> /dev/null); fi ; . venv/bin/activate; mkdir -p out/ out/proof; diffenator2 proof $$ TOCHECK -o out/proof
@@ -55,16 +49,12 @@ clean:
5549update-project-template :
5650 npx update-template https://github.com/googlefonts/googlefonts-project-template/
5751
58- update : venv venv-test
52+ update : venv
5953 venv/bin/pip install --upgrade pip-tools
6054 # See https://pip-tools.readthedocs.io/en/latest/#a-note-on-resolvers for
6155 # the `--resolver` flag below.
6256 venv/bin/pip-compile --upgrade --verbose --resolver=backtracking requirements.in
6357 venv/bin/pip-sync requirements.txt
6458
65- venv-test/bin/pip install --upgrade pip-tools
66- venv-test/bin/pip-compile --upgrade --verbose --resolver=backtracking requirements-test.in
67- venv-test/bin/pip-sync requirements-test.txt
68-
69- git commit -m "Update requirements" requirements.txt requirements-test.txt
59+ git commit -m "Update requirements" requirements.txt
7060 git push
0 commit comments