[smc-discuss] [Git][smc/raghumalayalamsans][master] Enable CI
Balasankar C
gitlab at mg.gitlab.com
Sat Dec 31 03:35:47 PST 2016
Balasankar C pushed to branch master at SMC / RaghuMalayalamSans
Commits:
a68054a9 by Balasankar C at 2016-12-31T17:05:20+05:30
Enable CI
- - - - -
2 changed files:
- + .gitlab-ci.yml
- Makefile
Changes:
=====================================
.gitlab-ci.yml
=====================================
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,23 @@
+image: "debian:stretch"
+
+generate-ttf:
+ stage: build
+ before_script:
+ - apt-get update -y
+ - apt-get install -y make fonttools python-fontforge python-brotli
+ 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
=====================================
Makefile
=====================================
--- a/Makefile
+++ b/Makefile
@@ -20,15 +20,21 @@ install: compile
install -D -m 0644 $${font}.ttf ${DESTDIR}/${fontpath}/$${font}.ttf;\
done;
-test: compile
-# Test the fonts
- @for font in `echo ${fonts}`; do \
- echo "Testing font $${font}";\
- hb-view $${font}.ttf --text-file tests/tests.txt --output-file tests/$${font}.pdf;\
- done;
dist:
@for font in `echo ${fonts}`;do \
cp $${font}.ttf ttf/$${font}.ttf;\
done;
+
+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;\
+ done;
clean:
- @rm -rf *.ttf *.sfd-* *.woff* *.eot
\ No newline at end of file
+ @rm -rf *.otf *.ttf *.woff *.woff2 *.sfd-* tests/*.pdf
View it on GitLab: https://gitlab.com/smc/raghumalayalamsans/commit/a68054a9b19cfc59683f559b728c1c2be3c93a3e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.smc.org.in/pipermail/discuss-smc.org.in/attachments/20161231/5ba8e020/attachment-0001.html>
More information about the discuss
mailing list