[smc-discuss] [Git][smc/dyuthi][master] Enable CI
Balasankar C
gitlab at mg.gitlab.com
Sat Dec 31 03:21:28 PST 2016
Balasankar C pushed to branch master at SMC / Dyuthi
Commits:
ca052abe by Balasankar C at 2016-12-31T16:50:47+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
+ 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
@@ -27,9 +27,16 @@ 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 --text-file tests/tests.txt --output-file tests/$${font}.pdf;\
+ 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 *.otf *.ttf *.woff *.woff2 *.sfd-* tests/*.pdf
View it on GitLab: https://gitlab.com/smc/dyuthi/commit/ca052abe15d28195cbf786d033bd058a76e22948
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.smc.org.in/pipermail/discuss-smc.org.in/attachments/20161231/f45f3bf9/attachment.htm>
More information about the discuss
mailing list