[gtk-doc] Add a script for the gitlab ci
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] Add a script for the gitlab ci
- Date: Thu, 13 Dec 2018 20:45:52 +0000 (UTC)
commit 227b4d5b724198920cc9cfb9fcb07f7f279ba5c9
Author: Stefan Sauer <ensonic users sf net>
Date: Thu Dec 13 21:45:01 2018 +0100
Add a script for the gitlab ci
.gitlab-ci.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]