summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml33
-rwxr-xr-xtest/gitlab-ci.sh5
2 files changed, 25 insertions, 13 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7e45978..6393142 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,13 +1,24 @@
-image: docker:latest
-services:
- - docker:dind
+image: archlinux/base:latest
-before_script:
- - echo FROM nwnk/xserver-travis-rawhide:v5 > Dockerfile
- - echo ADD . /root >> Dockerfile
- - echo WORKDIR /root >> Dockerfile
- - docker build -t withgit .
+stages:
+ - build
+ - deploy
-job:
- script:
- - docker run --volume $HOME/.ccache:/root/.ccache withgit ./test/gitlab-ci.sh
+build:
+ stage: build
+ script:
+ - pacman --noconfirm -Sy gcc meson ninja pkg-config doxygen graphviz texlive-bin
+ - ./test/gitlab-ci.sh
+ artifacts:
+ paths:
+ - public
+
+pages:
+ stage: deploy
+ script:
+ - echo "Nothing to do"
+ artifacts:
+ paths:
+ - public
+ only:
+ - master
diff --git a/test/gitlab-ci.sh b/test/gitlab-ci.sh
index ac93cac..6c468b3 100755
--- a/test/gitlab-ci.sh
+++ b/test/gitlab-ci.sh
@@ -1,6 +1,7 @@
#!/bin/sh
-set -x
+set -xe
meson setup build/
-meson configure -Dprefix=/usr -Ddri2=true build/
+meson configure -Dprefix=/usr -Ddri2=true -Ddocumentation=true build/
ninja -C build/ install test
+cp -av build/doc/html public/