summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2021-03-26 17:16:32 +0100
committerMichel Dänzer <michel@daenzer.net>2021-03-26 17:55:04 +0100
commitecced3b3c6af501c4c90265f8404b6898f3cf037 (patch)
treeb212abe510e8df173e567eeff6c0500b11c1bc02 /.gitlab-ci
parent77d9ab03ca20e683be4c40ccc879e201b538f7e5 (diff)
Add GitLab CI pipeline
Based on xf86-video-amdgpu, but applying experience gained in the meantime in other projects and taking advantage of new features available with current versions of GitLab.
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/debian-install.sh74
1 files changed, 74 insertions, 0 deletions
diff --git a/.gitlab-ci/debian-install.sh b/.gitlab-ci/debian-install.sh
new file mode 100644
index 00000000..4e528588
--- /dev/null
+++ b/.gitlab-ci/debian-install.sh
@@ -0,0 +1,74 @@
+#!/bin/bash
+
+set -e
+set -o xtrace
+
+echo 'deb-src https://deb.debian.org/debian buster main' >/etc/apt/sources.list.d/deb-src.list
+apt-get update
+
+
+# Ephemeral packages (installed for this script and removed again at the end)
+EPHEMERAL="
+ ca-certificates
+ git
+ "
+
+# libXfont/xserver build dependencies
+apt-get install -y --no-remove \
+ autoconf \
+ automake \
+ build-essential \
+ libtool \
+ pkg-config \
+ $EPHEMERAL
+
+echo 'APT::Get::Build-Dep-Automatic "true";' >>/etc/apt/apt.conf
+apt-get build-dep -y xorg-server
+
+
+git clone https://gitlab.freedesktop.org/xorg/lib/libXfont.git
+cd libXfont
+git checkout libXfont-1.5-branch
+./autogen.sh
+make install-pkgconfigDATA
+cd ..
+rm -rf libXfont
+
+
+git clone https://gitlab.freedesktop.org/xorg/xserver.git
+cd xserver
+
+for VERSION in 1.13 1.14 1.15; do
+ git checkout server-${VERSION}-branch
+ ./autogen.sh --prefix=/usr/local/xserver-$VERSION --enable-dri2
+ make -C include install-nodist_sdkHEADERS
+ make install-headers install-aclocalDATA install-pkgconfigDATA clean
+done
+
+for VERSION in 1.16 1.17 1.18 1.19 1.20; do
+ git checkout server-${VERSION}-branch
+ ./autogen.sh --prefix=/usr/local/xserver-$VERSION --enable-dri2 --enable-dri3 --enable-glamor
+ make -C include install-nodist_sdkHEADERS
+ make install-headers install-aclocalDATA install-pkgconfigDATA clean
+done
+
+cd ..
+rm -rf xserver
+
+
+# xf86-video-ati build dependencies
+apt-get install -y --no-remove \
+ clang \
+ libdrm-dev \
+ libgbm-dev \
+ libgl1-mesa-dev \
+ libpciaccess-dev \
+ libpixman-1-dev \
+ libudev-dev \
+ xutils-dev \
+ x11proto-dev
+
+
+# Remove unneeded packages
+apt-get purge -y $EPHEMERAL
+apt-get autoremove -y --purge