summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2018-12-13 22:31:10 +0100
committerStefan Sauer <ensonic@users.sf.net>2018-12-14 08:44:19 +0100
commita4dcdd321d7369a75b4559557e6374f430bca35d (patch)
treefde2f6ebdd05e0591c6d1e4433a97b902f9b037c /.gitlab-ci.yml
parent8b1f7b3d7a9deb2ba34d2fb564a95b6bb10b6b57 (diff)
downloadgtk-doc-a4dcdd321d7369a75b4559557e6374f430bca35d.tar.gz
ci: tweak ci setup more
- Drop dblatex again - it has too many deps and hence slows down cycles. - Add autogen step to test job, since jos are independent. - Merge the coverage report into the Makefile coverage target - Fix the coverage sumary regexp - Add a meson build step
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml35
1 files changed, 27 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2f630a6..e5ecb96 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,16 @@
image: debian:unstable
+# TODO: tune dependencies
+# - maybe install dblatex for pdf, we skip it now since this installs tons of
+# latex and thats slow
+# - gtkdoc-mkhtml2 needs the anytree python module - install through pip3
before_script:
- apt update -qq
- - apt install -y -qq autoconf automake build-essential libtool make pkg-config
- dblatex docbook-xsl libxml2-utils xsltproc libglib2.0-dev
- python3-lxml python3-parameterized python3-pip
- python3-pygments python3-unittest2
+ - apt install -y -qq --no-install-recommends
+ autoconf automake build-essential libtool make meson pkg-config
+ docbook-xsl libxml2-utils xsltproc libglib2.0-dev
+ python3-lxml python3-parameterized python3-pip
+ python3-pygments python3-unittest2
- export LANG=C.UTF-8
stages:
@@ -13,7 +18,9 @@ stages:
- test
- deploy
-build-job:
+# autotools
+
+autotools-build:
stage: build
script:
- ./autogen.sh --prefix=/usr
@@ -21,13 +28,25 @@ build-job:
except:
- tags
-test:
+autotools-test:
stage: test
script:
+ - ./autogen.sh --prefix=/usr
- make check
- make -C tests coverage
- - cd test && python3-coverage report --include="*/gtkdoc/*.py"
- coverage: '/^TOTAL\s+[\d\s]*?\s+([\d.]+\%)\s+/'
+ coverage: '/^TOTAL\s+\d+\s+\d+\s+([\d.]+\%)/'
+
+# meson
+
+meson-build:
+ stage: build
+ script:
+ - meson --prefix /usr _build .
+ - ninja -C _build
+ except:
+ - tags
+
+# common
pages:
stage: deploy