Skip to content
Snippets Groups Projects
Commit e99c3932 authored by Simon McVittie's avatar Simon McVittie
Browse files

container-runtime: Remove obsolete Gitlab-CI


This was integrated into debian/gitlab-ci.yml in commit 7ce7ba8f
"CI: Run the old SteamLinuxRuntime CI tests in the subproject" (!532).

Helps: steamrt/tasks#248
Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 3c807534
No related branches found
No related tags found
1 merge request!542CI improvements
# Copyright © 2019-2020 Collabora Ltd.
#
# SPDX-License-Identifier: MIT
variables:
BUILD_IMAGE: docker.internal.steamos.cloud/steamos/package-builder:bullseye
stages:
- test
- analyze
default:
tags:
- docker
- linux
image: "${BUILD_IMAGE}"
interruptible: true
test:
stage: test
# Assume Gitlab-CI uses bash, not sh (bash is the default)
script: |
set -eu
set -o pipefail
make check 2>&1 | tee qa-bullseye.log
# Save qa.log for analysis
artifacts:
paths:
- depots/*.txt
- depots/*/VERSIONS.txt
- qa-bullseye.log
todo:
stage: analyze
needs:
- test
# Succeed if grep fails (no failing or expected-failure tests),
# fail if grep succeeds
script: |
! grep -B10 '^not ok\b' qa-bullseye.log
# Failure is just a warning
allow_failure: true
# Run tests in stretch (this lets us assert that the test script
# is syntactically valid in Python 3.5). Ignore any pyflakes, shellcheck,
# etc. warnings because these older versions are probably less good at
# avoiding false positives.
test:stretch:
stage: test
image: docker.internal.steamos.cloud/steamos/package-builder:stretch
script: make check TESTS_ONLY=true
# The same, but for brewmaster and Python 3.4
test:brewmaster:
stage: test
image: docker.internal.steamos.cloud/steamos/package-builder:brewmaster
script: make check TESTS_ONLY=true
# The same, but for Ubuntu 18.04
test:bionic:
stage: test
image: ubuntu:18.04
before_script:
- |
set -eux
export DEBIAN_FRONTEND=noninteractive
apt-get -y update
apt-get -y install \
ca-certificates \
git \
make \
perl \
python3 \
python3-debian \
${NULL+}
tempdir="$(mktemp -d)"
git clone --branch steamrt/soldier https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.steamos.cloud/packaging/python-vdf.git "$tempdir/python-vdf"
export PYTHONPATH="$tempdir/python-vdf"
script: make check
artifacts:
paths:
- depots/*.txt
- depots/*/VERSIONS.txt
# The same, but for Arch
test:archlinux:
stage: test
image: archlinux:latest
before_script:
- |
set -eux
echo -e "\n[multilib]\nInclude = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
pacman -Syu --needed --noconfirm --noprogressbar \
base-devel \
git \
perl \
python \
python-chardet \
python-six \
python-tappy \
sudo \
${NULL+}
tempdir="$(mktemp -d)"
git clone --branch debian/buster https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.steamos.cloud/packaging/python-debian.git "$tempdir/python-debian"
git clone --branch steamrt/soldier https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.steamos.cloud/packaging/python-vdf.git "$tempdir/python-vdf"
export PATH="/usr/bin/core_perl:$PATH"
export PYTHONPATH="$tempdir/python-debian/lib:$tempdir/python-vdf"
script: make check
artifacts:
paths:
- depots/*.txt
- depots/*/VERSIONS.txt
reuse:
stage: test
tags:
- docker
- linux
needs: []
image:
name: fsfe/reuse:latest
entrypoint: [""]
before_script: []
script:
- reuse lint
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment