[smc-discuss] [Git][smc/keraleeyam][master] Enable CI
Balasankar C
gitlab at mg.gitlab.com
Sat Dec 31 03:27:08 PST 2016
Balasankar C pushed to branch master at SMC / Keraleeyam
Commits:
d5e54a4d by Balasankar C at 2016-12-31T16:55:38+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
@@ -30,11 +30,16 @@ install: compile
install -D -m 0644 $${font}.otf ${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;\
done;
clean:
- @rm -rf *.otf *.ttf *.woff *.woff2 *.sfd-*
+ @rm -rf *.otf *.ttf *.woff *.woff2 *.sfd-* tests/*.pdf
View it on GitLab: https://gitlab.com/smc/keraleeyam/commit/d5e54a4da59eb1284146108e404d1b21f1135904
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.smc.org.in/pipermail/discuss-smc.org.in/attachments/20161231/5ddf8e7c/attachment-0001.htm>
More information about the discuss
mailing list