1.templates_sha: &template_sha bd8010dd0123d3f0dda4ef691078566af2842613 # see https://docs.gitlab.com/ee/ci/yaml/#includefile 2 3 4include: 5 # Debian container builder template 6 - project: 'freedesktop/ci-templates' 7 ref: *template_sha 8 file: '/templates/debian.yml' 9 10 11stages: 12 - prep 13 - build 14 15 16variables: 17 DEBIAN_PACKAGES: 'build-essential automake autoconf libtool pkg-config libexpat1-dev libffi-dev libxml2-dev doxygen graphviz xmlto xsltproc docbook-xsl python3-pip python3-setuptools ninja-build' 18 DEBIAN_EXEC: 'pip3 install meson==0.52.1' 19 # these tags should be updated each time the list of packages is updated 20 # changing these will force rebuilding the associated image 21 # Note: these tags have no meaning and are not tied to a particular 22 # wayland version 23 DEBIAN_TAG: '2020-06-05.1' 24 FDO_UPSTREAM_REPO: wayland/wayland 25 26 27.debian.buster: 28 variables: 29 FDO_DISTRIBUTION_PACKAGES: $DEBIAN_PACKAGES 30 FDO_DISTRIBUTION_TAG: $DEBIAN_TAG 31 FDO_DISTRIBUTION_VERSION: 'buster' 32 FDO_DISTRIBUTION_EXEC: $DEBIAN_EXEC 33 34 35debian:buster@container-prep: 36 extends: 37 - .debian.buster 38 - .fdo.container-build@debian 39 stage: prep 40 variables: 41 GIT_STRATEGY: none 42 43 44build-native-autotools: 45 extends: 46 - .debian.buster 47 - .fdo.distribution-image@debian 48 stage: build 49 script: 50 - export BUILD_ID="wayland-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID" 51 - export PREFIX="$(pwd)/prefix-$BUILD_ID" 52 - export BUILDDIR="$(pwd)/build-$BUILD_ID" 53 - export MAKEFLAGS="-j4" 54 - mkdir "$BUILDDIR" "$PREFIX" 55 - cd "$BUILDDIR" 56 - ../autogen.sh --prefix="$PREFIX" --with-icondir=/usr/share/X11/icons 57 - make all 58 - make check 59 - make install 60 - make distcheck 61 artifacts: 62 name: wayland-$CI_COMMIT_SHA-$CI_JOB_ID 63 when: always 64 paths: 65 - build-*/wayland-*.tar.xz 66 - build-*/wayland*/_build/sub/*.log 67 - build-*/*.log 68 - prefix-* 69 70 71build-native-meson: 72 extends: 73 - .debian.buster 74 - .fdo.distribution-image@debian 75 stage: build 76 script: 77 - export BUILD_ID="wayland-$CI_JOB_NAME_$CI_COMMIT_SHA-$CI_JOB_ID" 78 - export PREFIX="$(pwd)/prefix-$BUILD_ID" 79 - export BUILDDIR="$(pwd)/build-$BUILD_ID" 80 - mkdir "$BUILDDIR" "$PREFIX" 81 - cd "$BUILDDIR" 82 - meson --prefix="$PREFIX" -Dicon_directory=/usr/share/X11/icons .. 83 - ninja -k0 test 84 - ninja clean 85 artifacts: 86 name: wayland-meson-$CI_COMMIT_SHA-$CI_JOB_ID 87 when: always 88 paths: 89 - build-meson/meson-logs 90 - prefix-* 91