summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml30
1 files changed, 28 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dd049da..fc1697c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,7 +20,7 @@ include:
stages:
- prep # prep work like rebuilding the container images if there is a change
- - install xorgproto
+ - install macros
- build # for actually building and testing things in a container
- test
- deploy
@@ -32,7 +32,7 @@ variables:
# The tag should be updated each time the list of packages is updated.
# Changing a tag forces the associated image to be rebuilt.
# Note: the tag has no meaning, we use a date format purely for readability
- FDO_DISTRIBUTION_TAG: '2022-07-17.0'
+ FDO_DISTRIBUTION_TAG: '2023-02-15.0'
FDO_DISTRIBUTION_PACKAGES: 'git gcc pkgconf autoconf automake make xutils-dev xmlto w3m xsltproc fop'
@@ -81,9 +81,32 @@ container-prep:
variables:
GIT_STRATEGY: none
+# Install latest version of xorg-macros, since debian doesn't package 1.20.0 yet
+install-macros:
+ extends:
+ - .fdo.distribution-image@debian
+ stage: install macros
+ script:
+ - export INSTDIR="$PWD/_inst"
+ - git clone --depth=1 https://gitlab.freedesktop.org/xorg/util/macros
+ - pushd macros > /dev/null
+ - autoreconf -ivf
+ - mkdir _builddir
+ - pushd _builddir > /dev/null
+ - ../configure --disable-silent-rules --prefix="$INSTDIR"
+ - make
+ - make install
+ - popd > /dev/null
+ - popd > /dev/null
+ variables:
+ artifacts:
+ paths:
+ - _inst
+
#
# The default build, runs on the image built above.
+# Sets ACLOCAL to use macros from "install macros" stage above.
#
build:
stage: build
@@ -91,6 +114,7 @@ build:
- .fdo.distribution-image@debian
script:
- export INSTDIR="$PWD/_inst"
+ - export ACLOCAL="aclocal -I $INSTDIR/share/aclocal"
- autoreconf -ivf
- mkdir _builddir
- pushd _builddir > /dev/null
@@ -107,6 +131,7 @@ build:
#
# Make sure xorg-docs builds with the xorg-sgml-doctools package built above
+# Sets ACLOCAL to use macros from "install macros" stage above.
#
docs-build:
extends:
@@ -114,6 +139,7 @@ docs-build:
stage: test
script:
- export INSTDIR="$PWD/_inst"
+ - export ACLOCAL="aclocal -I $INSTDIR/share/aclocal"
- export PKG_CONFIG_PATH=$(find $INSTDIR/ -name '*.pc' -printf "%h:")
- git clone --depth=1 https://gitlab.freedesktop.org/xorg/doc/xorg-docs
- pushd xorg-docs > /dev/null