|
|
17b0f1 |
From b73e89404a6caed7c14d51ec907c814c673ddf46 Mon Sep 17 00:00:00 2001
|
|
|
17b0f1 |
From: Frantisek Sumsal <fsumsal@redhat.com>
|
|
|
17b0f1 |
Date: Mon, 4 Mar 2019 10:26:03 +0100
|
|
|
17b0f1 |
Subject: [PATCH] travis: drop the RHEL 8 manager from the RHEL 7 branch
|
|
|
17b0f1 |
|
|
|
17b0f1 |
The original plan was to keep the managers synced between
|
|
|
17b0f1 |
RHEL 7 and RHEL 8 branches, but in the end it doesn't make
|
|
|
17b0f1 |
much sense.
|
|
|
17b0f1 |
---
|
|
|
17b0f1 |
ci/travis-centos-rhel8.sh | 134 --------------------------------------
|
|
|
17b0f1 |
1 file changed, 134 deletions(-)
|
|
|
17b0f1 |
delete mode 100755 ci/travis-centos-rhel8.sh
|
|
|
17b0f1 |
|
|
|
17b0f1 |
diff --git a/ci/travis-centos-rhel8.sh b/ci/travis-centos-rhel8.sh
|
|
|
17b0f1 |
deleted file mode 100755
|
|
|
17b0f1 |
index 1f72d984e0..0000000000
|
|
|
17b0f1 |
--- a/ci/travis-centos-rhel8.sh
|
|
|
17b0f1 |
+++ /dev/null
|
|
|
17b0f1 |
@@ -1,134 +0,0 @@
|
|
|
17b0f1 |
-#!/bin/bash
|
|
|
17b0f1 |
-
|
|
|
17b0f1 |
-# Run this script from the root of the systemd's git repository
|
|
|
17b0f1 |
-# or set REPO_ROOT to a correct path.
|
|
|
17b0f1 |
-#
|
|
|
17b0f1 |
-# Example execution on Fedora:
|
|
|
17b0f1 |
-# dnf install docker
|
|
|
17b0f1 |
-# systemctl start docker
|
|
|
17b0f1 |
-# export CONT_NAME="my-fancy-container"
|
|
|
17b0f1 |
-# ci/travis-centos.sh SETUP RUN CLEANUP
|
|
|
17b0f1 |
-
|
|
|
17b0f1 |
-PHASES=(${@:-SETUP RUN CLEANUP})
|
|
|
17b0f1 |
-CENTOS_RELEASE="${CENTOS_RELEASE:-latest}"
|
|
|
17b0f1 |
-CONT_NAME="${CONT_NAME:-centos-$CENTOS_RELEASE-$RANDOM}"
|
|
|
17b0f1 |
-DOCKER_EXEC="${DOCKER_EXEC:-docker exec -it $CONT_NAME}"
|
|
|
17b0f1 |
-DOCKER_RUN="${DOCKER_RUN:-docker run}"
|
|
|
17b0f1 |
-REPO_ROOT="${REPO_ROOT:-$PWD}"
|
|
|
17b0f1 |
-ADDITIONAL_DEPS=(systemd-ci-environment libidn2-devel python-lxml python36 ninja-build libasan net-tools strace nc busybox e2fsprogs quota dnsmasq)
|
|
|
17b0f1 |
-# Repo with additional depencencies to compile newer systemd on CentOS 7
|
|
|
17b0f1 |
-COPR_REPO="https://copr.fedorainfracloud.org/coprs/mrc0mmand/systemd-centos-ci/repo/epel-7/mrc0mmand-systemd-centos-ci-epel-7.repo"
|
|
|
17b0f1 |
-COPR_REPO_PATH="/etc/yum.repos.d/${COPR_REPO##*/}"
|
|
|
17b0f1 |
-
|
|
|
17b0f1 |
-function info() {
|
|
|
17b0f1 |
- echo -e "\033[33;1m$1\033[0m"
|
|
|
17b0f1 |
-}
|
|
|
17b0f1 |
-
|
|
|
17b0f1 |
-set -e
|
|
|
17b0f1 |
-
|
|
|
17b0f1 |
-source "$(dirname $0)/travis_wait.bash"
|
|
|
17b0f1 |
-
|
|
|
17b0f1 |
-for phase in "${PHASES[@]}"; do
|
|
|
17b0f1 |
- case $phase in
|
|
|
17b0f1 |
- SETUP)
|
|
|
17b0f1 |
- info "Setup phase"
|
|
|
17b0f1 |
- info "Using Travis $CENTOS_RELEASE"
|
|
|
17b0f1 |
- # Pull a Docker image and start a new container
|
|
|
17b0f1 |
- docker pull centos:$CENTOS_RELEASE
|
|
|
17b0f1 |
- info "Starting container $CONT_NAME"
|
|
|
17b0f1 |
- $DOCKER_RUN -v $REPO_ROOT:/build:rw \
|
|
|
17b0f1 |
- -w /build --privileged=true --name $CONT_NAME \
|
|
|
17b0f1 |
- -dit --net=host centos:$CENTOS_RELEASE /sbin/init
|
|
|
17b0f1 |
- # Beautiful workaround for Fedora's version of Docker
|
|
|
17b0f1 |
- sleep 1
|
|
|
17b0f1 |
- $DOCKER_EXEC yum makecache
|
|
|
17b0f1 |
- $DOCKER_EXEC curl "$COPR_REPO" -o "$COPR_REPO_PATH"
|
|
|
17b0f1 |
- $DOCKER_EXEC yum -q -y install epel-release yum-utils
|
|
|
17b0f1 |
- $DOCKER_EXEC yum-config-manager -q --enable epel
|
|
|
17b0f1 |
- $DOCKER_EXEC yum -y upgrade
|
|
|
17b0f1 |
- # Install necessary build/test requirements
|
|
|
17b0f1 |
- $DOCKER_EXEC yum -y install "${ADDITIONAL_DEPS[@]}"
|
|
|
17b0f1 |
- $DOCKER_EXEC python3.6 -m ensurepip
|
|
|
17b0f1 |
- $DOCKER_EXEC python3.6 -m pip install meson
|
|
|
17b0f1 |
- # Create necessary symlinks
|
|
|
17b0f1 |
- $DOCKER_EXEC ln --force -s /usr/bin/python3.6 /usr/bin/python3
|
|
|
17b0f1 |
- $DOCKER_EXEC ln --force -s /usr/bin/ninja-build /usr/bin/ninja
|
|
|
17b0f1 |
- ;;
|
|
|
17b0f1 |
- RUN)
|
|
|
17b0f1 |
- info "Run phase"
|
|
|
17b0f1 |
- # Build systemd
|
|
|
17b0f1 |
- CONFIGURE_OPTS=(
|
|
|
17b0f1 |
- # RHEL8 options
|
|
|
17b0f1 |
- -Dsysvinit-path=/etc/rc.d/init.d
|
|
|
17b0f1 |
- -Drc-local=/etc/rc.d/rc.local
|
|
|
17b0f1 |
- -Ddns-servers=''
|
|
|
17b0f1 |
- -Ddev-kvm-mode=0666
|
|
|
17b0f1 |
- -Dkmod=true
|
|
|
17b0f1 |
- -Dxkbcommon=true
|
|
|
17b0f1 |
- -Dblkid=true
|
|
|
17b0f1 |
- -Dseccomp=true
|
|
|
17b0f1 |
- -Dima=true
|
|
|
17b0f1 |
- -Dselinux=true
|
|
|
17b0f1 |
- -Dapparmor=false
|
|
|
17b0f1 |
- -Dpolkit=true
|
|
|
17b0f1 |
- -Dxz=true
|
|
|
17b0f1 |
- -Dzlib=true
|
|
|
17b0f1 |
- -Dbzip2=true
|
|
|
17b0f1 |
- -Dlz4=true
|
|
|
17b0f1 |
- -Dpam=true
|
|
|
17b0f1 |
- -Dacl=true
|
|
|
17b0f1 |
- -Dsmack=true
|
|
|
17b0f1 |
- -Dgcrypt=true
|
|
|
17b0f1 |
- -Daudit=true
|
|
|
17b0f1 |
- -Delfutils=true
|
|
|
17b0f1 |
- -Dlibcryptsetup=true
|
|
|
17b0f1 |
- -Delfutils=true
|
|
|
17b0f1 |
- -Dqrencode=false
|
|
|
17b0f1 |
- -Dgnutls=true
|
|
|
17b0f1 |
- -Dmicrohttpd=true
|
|
|
17b0f1 |
- -Dlibidn2=true
|
|
|
17b0f1 |
- -Dlibiptc=true
|
|
|
17b0f1 |
- -Dlibcurl=true
|
|
|
17b0f1 |
- -Defi=true
|
|
|
17b0f1 |
- -Dtpm=true
|
|
|
17b0f1 |
- -Dhwdb=true
|
|
|
17b0f1 |
- -Dsysusers=true
|
|
|
17b0f1 |
- -Ddefault-kill-user-processes=false
|
|
|
17b0f1 |
- -Dtests=unsafe
|
|
|
17b0f1 |
- -Dinstall-tests=true
|
|
|
17b0f1 |
- -Dtty-gid=5
|
|
|
17b0f1 |
- -Dusers-gid=100
|
|
|
17b0f1 |
- -Dnobody-user=nobody
|
|
|
17b0f1 |
- -Dnobody-group=nobody
|
|
|
17b0f1 |
- -Dsplit-usr=false
|
|
|
17b0f1 |
- -Dsplit-bin=true
|
|
|
17b0f1 |
- -Db_lto=false
|
|
|
17b0f1 |
- -Dnetworkd=false
|
|
|
17b0f1 |
- -Dtimesyncd=false
|
|
|
17b0f1 |
- -Ddefault-hierarchy=legacy
|
|
|
17b0f1 |
- # Custom options
|
|
|
17b0f1 |
- -Dslow-tests=true
|
|
|
17b0f1 |
- -Dtests=unsafe
|
|
|
17b0f1 |
- -Dinstall-tests=true
|
|
|
17b0f1 |
- )
|
|
|
17b0f1 |
- docker exec -it -e CFLAGS='-g -O0 -ftrapv' $CONT_NAME meson build "${CONFIGURE_OPTS[@]}"
|
|
|
17b0f1 |
- $DOCKER_EXEC ninja -v -C build
|
|
|
17b0f1 |
- # Let's install the new systemd and "reboot" the container to avoid
|
|
|
17b0f1 |
- # unexpected fails due to incompatibilities with older systemd
|
|
|
17b0f1 |
- $DOCKER_EXEC ninja -C build install
|
|
|
17b0f1 |
- docker restart $CONT_NAME
|
|
|
17b0f1 |
- # "Mask" the udev-test.pl, as it requires newer version of systemd-detect-virt
|
|
|
17b0f1 |
- # and it's pointless to run it on a VM in a Docker container...
|
|
|
17b0f1 |
- echo -ne "#!/usr/bin/perl\nexit(0);\n" > "test/udev-test.pl"
|
|
|
17b0f1 |
- $DOCKER_EXEC ninja -C build test
|
|
|
17b0f1 |
- ;;
|
|
|
17b0f1 |
- CLEANUP)
|
|
|
17b0f1 |
- info "Cleanup phase"
|
|
|
17b0f1 |
- docker stop $CONT_NAME
|
|
|
17b0f1 |
- docker rm -f $CONT_NAME
|
|
|
17b0f1 |
- ;;
|
|
|
17b0f1 |
- *)
|
|
|
17b0f1 |
- echo >&2 "Unknown phase '$phase'"
|
|
|
17b0f1 |
- exit 1
|
|
|
17b0f1 |
- esac
|
|
|
17b0f1 |
-done
|