summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-08-12 10:57:11 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-08-12 11:44:56 +1000
commit27a88897bedb8dca41be311a162243ec7f4a952d (patch)
tree597a3f9122000ab5e83057f91cf02eab27c26c10
parentd5867e5db6300ba2fa08054f16af661bd0ae4200 (diff)
Add basic Gitlab CI for testing the build
This merely tests against the devel package in Fedora, not against the xserver from git. Should be enough, the driver here doesn't change enough to need the git builds. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--.gitlab-ci.yml64
1 files changed, 64 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..d73eb94
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,64 @@
+# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:
+
+include:
+ - project: 'wayland/ci-templates'
+ ref: 955e61e67cf29327cf907432f668df9eec4ca6a2 # see https://docs.gitlab.com/ee/ci/yaml/#includefile
+ file: '/templates/fedora.yml'
+
+
+variables:
+ FEDORA_RPMS: 'git autoconf automake libtool make xorg-x11-server-devel libudev-devel libevdev-devel libinput-devel xorg-x11-util-macros'
+ FEDORA_TAG: '2019-08-12.0'
+ UPSTREAM_REPO: xorg/drivers/xf86-input-libinput
+ BUILDAH_IMAGE: $CI_REGISTRY/wayland/ci-templates/buildah:latest
+ FEDORA_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/fedora/$FEDORA_VERSION:$FEDORA_TAG
+
+
+stages:
+ - containers-build
+ - build
+
+
+container_build:
+ extends: .fedora@container-ifnot-exists
+ stage: containers-build
+ variables:
+ GIT_STRATEGY: none
+ FEDORA_VERSION: 30
+
+
+.default_artifacts: &default_artifacts
+ artifacts:
+ name: "automake-logs-$CI_JOB_NAME"
+ when: always
+ expire_in: 1 week
+ paths:
+ - _builddir/config.log
+
+
+.default_build: &default_build
+ script:
+ - mkdir _builddir _inst
+ - pushd _builddir > /dev/null
+ - ../autogen.sh --prefix=$(realpath ../_inst) --disable-silent-rules
+ - make && make check
+ - make install
+ - popd > /dev/null
+
+
+.build@template:
+ stage: build
+ <<: *default_artifacts
+ <<: *default_build
+ dependencies: []
+
+
+.fedora-build@template:
+ extends: .build@template
+ image: $FEDORA_CONTAINER_IMAGE
+
+
+fedora:30@default-build:
+ extends: .fedora-build@template
+ variables:
+ FEDORA_VERSION: 30