Codebase list iputils / b4771eb
travis: Reenable openSUSE Tumbleweed openSUSE Tumbleweed was temporarily removed in f0c64bbb2 due faccessat2() incompatibility in libseccomp/runc used in old docker with old kernel on Ubuntu Focal on hosts in Travis CI together with guests with the newest glibc 2.33. Fixing Tumbleweed required switch to podman and downloading newest runc release (v1.0.0-rc93) which contains the fix [1], because proposed glibc fix [2] aren't going to merged to upstream not to distros. [1] https://github.com/opencontainers/runc/pull/2750 [2] https://sourceware.org/pipermail/libc-alpha/2020-November/119955.html Signed-off-by: Petr Vorel <pvorel@suse.cz> Petr Vorel 3 years ago
1 changed file(s) with 23 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
00 ---
1 # Copyright (c) 2019-2020 Petr Vorel <pvorel@suse.cz>
1 # Copyright (c) 2019-2021 Petr Vorel <pvorel@suse.cz>
22
3 dist: bionic
34 sudo: required
45 language: c
56 services:
2930 compiler: gcc
3031
3132 # glibc (gcc/clang)
33 - os: linux
34 env: DISTRO=opensuse/tumbleweed CONTAINER=podman CONTAINER_ARGS="--runtime=/usr/bin/runc"
35 compiler: gcc
36
3237 - os: linux
3338 env: DISTRO=opensuse/leap
3439 compiler: clang
6267 compiler: clang
6368
6469 before_install:
70 # Tumbleweed requires podman and newest runc due docker incompatible with glibc 2.33 (faccessat2)
71 - CONTAINER="${CONTAINER:-docker}"
72 - >
73 if [ "$CONTAINER" = "podman" ]; then
74 # podman
75 . /etc/os-release
76 sudo sh -c "echo 'deb http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /' > /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list"
77 wget -nv https://download.opensuse.org/repositories/devel:kubic:libcontainers:stable/xUbuntu_${VERSION_ID}/Release.key -O- | sudo apt-key add -
78 sudo apt update
79 sudo apt -y install podman slirp4netns
80
81 # runc
82 sudo curl -L https://github.com/opencontainers/runc/releases/download/v1.0.0-rc93/runc.amd64 -o /usr/bin/runc
83 sudo chmod +x /usr/bin/runc
84 fi
6585 - DIR="/usr/src/iputils"
6686 - printf "FROM $DISTRO\nRUN mkdir -p $DIR\nWORKDIR $DIR\nCOPY . $DIR\n" > Dockerfile
6787 - echo "cat Dockerfile"; cat Dockerfile
68 - docker build -t iputils .
88 - $CONTAINER $CONTAINER_ARGS build -t iputils .
6989
7090 script:
7191 - INSTALL="${DISTRO%%:*}"
7292 - INSTALL="${INSTALL%%/*}"
7393 - DISTRO_VERSION="${DISTRO#*:}"
7494 - case $VARIANT in cross-compile*) BUILD="cross";; i386) BUILD="32";; *) BUILD="native";; esac
75 - docker run -it iputils /bin/sh -c "cd travis && DISTRO_VERSION=\"$DISTRO_VERSION\" ./$INSTALL.sh && if [ \"$VARIANT\" ]; then ARCH=\"$ARCH\" ./$INSTALL.$VARIANT.sh; fi && CC=$CC EXTRA_BUILD_OPTS=\"$EXTRA_BUILD_OPTS\" ../build.sh"
95 - $CONTAINER $CONTAINER_ARGS run -it iputils /bin/sh -c "cd travis && DISTRO_VERSION=\"$DISTRO_VERSION\" ./$INSTALL.sh && if [ \"$VARIANT\" ]; then ARCH=\"$ARCH\" ./$INSTALL.$VARIANT.sh; fi && CC=$CC EXTRA_BUILD_OPTS=\"$EXTRA_BUILD_OPTS\" ../build.sh"