summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2018-12-13 21:45:01 +0100
committerStefan Sauer <ensonic@users.sf.net>2018-12-13 21:45:01 +0100
commit227b4d5b724198920cc9cfb9fcb07f7f279ba5c9 (patch)
tree0b51b10772812ba55886bf47ab110650be212ebe /.gitlab-ci.yml
parent302e71d709735f31b52f4737a512312b2041f708 (diff)
downloadgtk-doc-227b4d5b724198920cc9cfb9fcb07f7f279ba5c9.tar.gz
Add a script for the gitlab ci
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..4c0d872
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,44 @@
+image: debian:unstable
+
+before_script:
+ - apt update -qq
+ - apt install -y -qq autoconf automake build-essential pkg-config
+ libxml2-utils xsltproc
+ python3-lxml python3-parameterized python3-pip
+ python3-pygments python3-unittest2
+ - export LANG=C.UTF-8
+
+stages:
+ - build
+ - test
+ - deploy
+
+build-job:
+ stage: build
+ script:
+ - ./autogen.sh --prefix=/usr
+ - make
+ except:
+ - tags
+
+test:
+ stage: test
+ script:
+ - make check
+ - cd test && make coverage
+ - cd test && python3-coverage report --include="*/gtkdoc/*.py"
+ coverage: '/^TOTAL\s+[\d\s]*?\s+([\d.]+\%)\s+/'
+
+pages:
+ stage: deploy
+ only:
+ - master
+ script:
+ - ./autogen.sh --prefix=/usr
+ - make
+ - cd test && make coverage
+ - mkdir -p public/
+ - mv tests/htmlcov public/
+ artifacts:
+ paths:
+ - public