Commit c689e9c5 authored by Balasankar "Balu" C's avatar Balasankar "Balu" C

Enable CI

parent c60c0e39
Pipeline #5607798 passed with stages
in 2 minutes and 33 seconds
image: "debian:stretch"
generate-ttf:
stage: build
before_script:
- apt-get update -y
- apt-get install -y make fonttools python-fontforge
script:
- make compile
- mkdir -p ttfs/
- mv *.ttf ttfs/
artifacts:
paths:
- ttfs/
test:
stage: test
before_script:
- apt-get update -y
- apt-get install -y make libharfbuzz-bin
script:
- cp -r ttfs/* .
- make test
......@@ -30,8 +30,13 @@ install: compile
install -D -m 0644 $${font}.ttf ${DESTDIR}/${fontpath}/$${font}.ttf;\
done;
test: compile
# Test the fonts
ifeq ($(shell ls -l *.ttf 2>/dev/null | wc -l),0)
test: compile run-test
else
test: run-test
endif
run-test:
@for font in `echo ${fonts}`; do \
echo "Testing font $${font}";\
hb-view $${font}.ttf --font-size 14 --margin 100 --line-space 1.5 --foreground=333333 --text-file tests/tests.txt --output-file tests/$${font}.pdf;\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment