summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2023-03-26 14:02:27 -0400
committerManuel Stoeckl <code@mstoeckl.com>2023-03-26 14:02:27 -0400
commit4e6cde7f1e58adc1a9d721c638a01291777bf5d1 (patch)
treeebed7f6f43260a115ff1f83b9a75bfbde869e74f
parent9070c4c527c906cb186588ca410d92d2f7f3c7ba (diff)
Disable CI
-rw-r--r--.gitlab-ci.yml75
-rw-r--r--.gitlab-ci/debian-install.sh15
-rw-r--r--.gitlab-ci/debian32-install.sh17
-rw-r--r--.gitlab-ci/debian32.yml141
4 files changed, 0 insertions, 248 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
deleted file mode 100644
index 631e69d..0000000
--- a/.gitlab-ci.yml
+++ /dev/null
@@ -1,75 +0,0 @@
-
-variables:
- UPSTREAM_REPO: mstoeckl/waypipe
-
- DEBIAN_TAG: '2019-06-25.1'
- DEBIAN_VERSION: buster
- DEBIAN_EXEC: 'bash .gitlab-ci/debian-install.sh'
- DEBIAN_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG
-
- DEBIAN32_TAG: 'deb32-2019-07-04.2'
- DEBIAN32_VERSION: buster
- DEBIAN32_EXEC: 'bash .gitlab-ci/debian32-install.sh'
- DEBIAN32_CONTAINER_IMAGE: $CI_REGISTRY_IMAGE/debian/$DEBIAN32_VERSION:$DEBIAN32_TAG
-
-include:
- - project: 'wayland/ci-templates'
- ref: 96912c7331cbc6da41fbf22c4217aa541176f063
- file: '/templates/debian.yml'
- - project: 'mstoeckl/waypipe'
- file: '/.gitlab-ci/debian32.yml'
- ref: master
-
-stages:
- - container_prep
- - build
-
-debian_container_prep:
- extends: .debian@container-ifnot-exists
- stage: container_prep
-
-debian32_container_prep:
- extends: .debian32@container-ifnot-exists
- stage: container_prep
-
-.build-debian-all:
- stage: build
- script:
- - export PATH=~/.local/bin:$PATH
- - cd "$BUILDDIR"
- - meson --prefix="$PREFIX" -Dwerror=true ..
- - ninja -k0
- - ninja install
- - ninja test
- - ninja clean
- artifacts:
- name: waypipe-$CI_COMMIT_SHA-$CI_JOB_ID
- when: always
- paths:
- - b-*/meson-logs
- - b-*/run
- - p-*
-
-debian-build:
- before_script:
- - export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
- - export BUILD_ID="$CI_COMMIT_SHA-$CI_JOB_ID"
- - export PREFIX="$(pwd)/p-$BUILD_ID"
- - export BUILDDIR="$(pwd)/b-$BUILD_ID"
- - mkdir "$BUILDDIR" "$PREFIX"
- - export CC=gcc
- extends: .build-debian-all
- image: $DEBIAN_CONTAINER_IMAGE
-
-debian32-build:
- before_script:
- - export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XXXXXX)"
- - export BUILD_ID="$CI_COMMIT_SHA-$CI_JOB_ID"
- - export PREFIX="$(pwd)/p-$BUILD_ID"
- - export BUILDDIR="$(pwd)/b-$BUILD_ID"
- - mkdir "$BUILDDIR" "$PREFIX"
- - export CC=/usr/bin/gcc-8
- - export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig/
- extends: .build-debian-all
- image: $DEBIAN32_CONTAINER_IMAGE
-
diff --git a/.gitlab-ci/debian-install.sh b/.gitlab-ci/debian-install.sh
deleted file mode 100644
index 03287d3..0000000
--- a/.gitlab-ci/debian-install.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-set -e -o xtrace
-
-apt-get update
-apt-get -y --no-install-recommends install \
- build-essential git automake autoconf libtool pkg-config libexpat1-dev \
- libffi-dev libxml2-dev mesa-common-dev libglu1-mesa-dev libegl1-mesa-dev \
- libgles2-mesa-dev libwayland-dev libudev-dev libgbm-dev libxkbcommon-dev \
- libvpx-dev libva-dev curl python3-pip python3-setuptools ninja-build weston \
- liblz4-dev libzstd-dev wayland-protocols libavcodec-dev libavutil-dev \
- libswscale-dev
-
-pip3 install --user git+https://github.com/mesonbuild/meson.git@0.47
-
diff --git a/.gitlab-ci/debian32-install.sh b/.gitlab-ci/debian32-install.sh
deleted file mode 100644
index 00fc7ea..0000000
--- a/.gitlab-ci/debian32-install.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-
-set -e -o xtrace
-
-dpkg --print-foreign-architectures
-dpkg --add-architecture i386
-
-apt-get update
-
-# Actual package dependencies
-apt-get -y --no-install-recommends install wayland-protocols:i386 pkg-config:i386 libwayland-dev:i386 libgbm-dev:i386 liblz4-dev:i386 libzstd-dev:i386 libavcodec-dev:i386 libavutil-dev:i386 libswscale-dev:i386 weston:i386 libdrm-dev:i386
-apt-get -y --no-install-recommends install gcc-8-multilib:i386 gcc-8:i386 make:i386
-
-# Build scripts, architecture doesn't matter
-apt-get -y --no-install-recommends install git python3-pip python3-wheel python3-setuptools ninja-build scdoc
-pip3 install --user git+https://github.com/mesonbuild/meson.git@0.47
-
diff --git a/.gitlab-ci/debian32.yml b/.gitlab-ci/debian32.yml
deleted file mode 100644
index 6e250b9..0000000
--- a/.gitlab-ci/debian32.yml
+++ /dev/null
@@ -1,141 +0,0 @@
-# vim: set expandtab shiftwidth=2 tabstop=8 textwidth=0:
-
-# This template will create a debian image based on the following variables:
-#
-# - DEBIAN_VERSION: the debian version (stretch, sid, etc...)
-# - DEBIAN_DEBS: if set, list of packages that needs to be installed
-# - DEBIAN_EXEC: if set, this command will be run once the packages have
-# been installed
-# - UPSTREAM_REPO: the upstream project on this gitlab instance where we might
-# find the given tag (for example: `wayland/weston`)
-# - DEBIAN_TAG: tag to copy the image from the upstream registry. If the
-# tag does not exist, create a new build and tag it
-#
-# The resulting image will be pushed in the local registry, under:
-# $CI_REGISTRY_IMAGE/debian/$DEBIAN_VERSION:$DEBIAN_TAG
-#
-# Two flavors of templates are available:
-# - `.debian32@container-build`: this will force rebuild a new container
-# and tag it with $DEBIAN_TAG without checks
-# - `.debian32@container-ifnot-exists`: this will rebuild a new container
-# only if $DEBIAN_TAG is not available in the local registry or
-# in the $UPSTREAM_REPO registry
-
-# we can not reuse exported variables in after_script,
-# so have a common definition
-.debian32_vars: &distro_vars |
- # exporting templates variables
- # https://gitlab.com/gitlab-com/support-forum/issues/4349
- export BUILDAH_FORMAT=docker
- # The '32' version should run multilib
- export DISTRO=debian
- export DISTRO_TAG=$DEBIAN32_TAG
- export DISTRO_VERSION=$DEBIAN32_VERSION
- export DISTRO_EXEC=$DEBIAN32_EXEC
-
-
-# Do not use this template directly, you can not reuse the produced image
-# as it is tagged with $CI_JOB_ID
-..debian32@container-template:
- image: $CI_REGISTRY/wayland/ci-templates/buildah:latest
- stage: build
- before_script:
- # log in to the registry
- - podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
- - *distro_vars
-
- script:
- - *distro_vars
- - echo Building $DISTRO/$DISTRO_VERSION:$DISTRO_TAG from $DISTRO:$DISTRO_VERSION
- # initial set up: take the base image, update it and install the packages
- - buildcntr=$(buildah from $DISTRO:$DISTRO_VERSION)
- - buildmnt=$(buildah mount $buildcntr)
- - buildah run $buildcntr cat /etc/apt/sources.list
- - echo 'path-exclude=/usr/share/doc/*' > $buildmnt/etc/dpkg/dpkg.cfg.d/99-exclude-cruft
- - echo 'path-exclude=/usr/share/locale/*' >> $buildmnt/etc/dpkg/dpkg.cfg.d/99-exclude-cruft
- - echo 'path-exclude=/usr/share/man/*' >> $buildmnt/etc/dpkg/dpkg.cfg.d/99-exclude-cruft
- - echo 'APT::Install-Recommends "false";' > $buildmnt/etc/apt/apt.conf
- - echo '#!/bin/sh' > $buildmnt/usr/sbin/policy-rc.d
- - echo 'exit 101' >> $buildmnt/usr/sbin/policy-rc.d
- - chmod +x $buildmnt/usr/sbin/policy-rc.d
-
- - buildah run $buildcntr env DEBIAN_FRONTEND=noninteractive apt-get update
- - buildah run $buildcntr env DEBIAN_FRONTEND=noninteractive apt-get -y dist-upgrade
- - if [[ x"$DEBIAN_DEBS" != x"" ]] ;
- then
- buildah run $buildcntr env DEBIAN_FRONTEND=noninteractive apt-get -y install $DEBIAN_DEBS ;
- fi
-
- # check if there is an optional post install script and run it
- - if [[ x"$DISTRO_EXEC" != x"" ]] ;
- then
- echo Running $DISTRO_EXEC ;
- set -x ;
- mkdir $buildmnt/tmp/clone ;
- pushd $buildmnt/tmp/clone ;
- git init ;
- git remote add origin $CI_REPOSITORY_URL ;
- git fetch --depth 1 origin $CI_COMMIT_SHA ;
- git checkout FETCH_HEAD > /dev/null;
- buildah config --workingdir /tmp/clone $buildcntr ;
- buildah run $buildcntr bash -c "set -x ; $DISTRO_EXEC" ;
- popd ;
- rm -rf $buildmnt/tmp/clone ;
- set +x ;
- fi
-
- # do not store the packages database, it's pointless
- - buildah run $buildcntr env DEBIAN_FRONTEND=noninteractive apt-get clean
- - rm -f $buildmnt/var/lib/apt/lists/*.lz4
-
- # set up the working directory
- - buildah config --workingdir /app $buildcntr
- # umount the container, not required, but, heh
- - buildah unmount $buildcntr
- # tag the current container
- - buildah commit $buildcntr $CI_REGISTRY_IMAGE/$DISTRO/$DISTRO_VERSION:$CI_JOB_ID
- # clean up the working container
- - buildah rm $buildcntr
-
- # push the container image to the registry
- # There is a bug when pushing 2 tags in the same repo with the same base:
- # this may fail. Just retry it after.
- - podman push $CI_REGISTRY_IMAGE/$DISTRO/$DISTRO_VERSION:$CI_JOB_ID || true
- - sleep 2
- - podman push $CI_REGISTRY_IMAGE/$DISTRO/$DISTRO_VERSION:$CI_JOB_ID
-
- # mark the current stage as successed, to get the result in after_script
- - touch .success
-
-
-.debian32@container-build:
- extends: ..debian32@container-template
- after_script:
- # if we did not build, or if there was a failure, exit
- # (the exit status does not matter here)
- - if [[ ! -e .success ]] ;
- then
- exit 0;
- fi
-
- - *distro_vars
-
- - skopeo copy docker://$CI_REGISTRY_IMAGE/$DISTRO/$DISTRO_VERSION:$CI_JOB_ID
- docker://$CI_REGISTRY_IMAGE/$DISTRO/$DISTRO_VERSION:$DISTRO_TAG
-
-
-.debian32@container-ifnot-exists:
- extends: .debian32@container-build
- before_script:
- # log in to the registry
- - podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
- - *distro_vars
-
- # check if our image is already in the current registry
- - skopeo inspect docker://$CI_REGISTRY_IMAGE/$DISTRO/$DISTRO_VERSION:$DISTRO_TAG > /dev/null && exit 0 || true
-
- # copy the original image into the current project registry namespace
- - skopeo copy docker://$CI_REGISTRY/$UPSTREAM_REPO/$DISTRO/$DISTRO_VERSION:$DISTRO_TAG
- docker://$CI_REGISTRY_IMAGE/$DISTRO/$DISTRO_VERSION:$DISTRO_TAG && exit 0 || true