mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
Remove travis-ci leftovers
Travis CI stopped providing CI minutes for open-source projects some time ago and we have migrated to GitHub actions. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
parent
25f8be0f60
commit
b25ff1d336
9 changed files with 15 additions and 64 deletions
|
|
@ -30,9 +30,9 @@ endif
|
|||
|
||||
export CONTAINER_TERMINAL
|
||||
|
||||
# Here we assume that any CPU architecture besides x86_64 is running in containers
|
||||
# that may not support running docker with '--privileged'.
|
||||
ifeq ($(UNAME),x86_64)
|
||||
# On anything besides x86_64 Travis is running unprivileged LXD
|
||||
# containers which do not support running docker with '--privileged'.
|
||||
CONTAINER_OPTS := --rm $(CONTAINER_TERMINAL) --privileged --userns=host --cgroupns=host -v /lib/modules:/lib/modules --tmpfs /run
|
||||
else
|
||||
CONTAINER_OPTS := --rm -v /lib/modules:/lib/modules --tmpfs /run
|
||||
|
|
|
|||
|
|
@ -11,13 +11,11 @@ IFS=" " read -r -a ZDTM_OPTS <<< "$ZDTM_OPTS"
|
|||
UNAME_M=$(uname -m)
|
||||
|
||||
if [ "$UNAME_M" != "x86_64" ]; then
|
||||
# For Travis only x86_64 seems to be baremetal. Other
|
||||
# architectures are running in unprivileged LXD containers.
|
||||
# That seems to block most of CRIU's interfaces.
|
||||
|
||||
# But with the introduction of baremetal aarch64 systems in
|
||||
# Travis (arch: arm64-graviton2) we can override this using
|
||||
# an environment variable
|
||||
# Some tests rely on kernel features that may not be availble
|
||||
# when running in a container. Here we assume that x86_64
|
||||
# systems are baremetal, and skip the tests for all other
|
||||
# CPU architectures. We can override this using the RUN_TESTS
|
||||
# environment variable (e.g., for aarch64).
|
||||
[ -n "$RUN_TESTS" ] || SKIP_CI_TEST=1
|
||||
fi
|
||||
|
||||
|
|
@ -31,7 +29,7 @@ ci_prep () {
|
|||
# not run anymore with 'sudo -u \#1000' if the UID does not exist.
|
||||
adduser -u 1000 --disabled-password --gecos "criutest" criutest || :
|
||||
|
||||
# This can fail on aarch64 travis
|
||||
# This can fail on aarch64
|
||||
service apport stop || :
|
||||
|
||||
# Ubuntu has set up AppArmor in 24.04 so that it blocks use of user
|
||||
|
|
@ -258,7 +256,7 @@ if [ -z "$SKIP_EXT_DEV_TEST" ]; then
|
|||
fi
|
||||
|
||||
make -C test/others/make/ run CC="$CC"
|
||||
if [ -n "$TRAVIS" ] || [ -n "$CIRCLECI" ]; then
|
||||
if [ -n "$CIRCLECI" ]; then
|
||||
# GitHub Actions (and Cirrus CI) does not provide a real TTY and CRIU will fail with:
|
||||
# Error (criu/tty.c:1014): tty: Don't have tty to inherit session from, aborting
|
||||
make -C test/others/shell-job/ run
|
||||
|
|
|
|||
|
|
@ -11,11 +11,6 @@ FEDORA_VERSION=42
|
|||
FEDORA_BOX_VERSION=1.1.0
|
||||
|
||||
setup() {
|
||||
if [ -n "$TRAVIS" ]; then
|
||||
# Load the kvm modules for vagrant to use qemu
|
||||
modprobe kvm kvm_intel
|
||||
fi
|
||||
|
||||
# Tar up the git checkout to have vagrant rsync it to the VM
|
||||
tar cf /tmp/criu.tar -C ../../../ criu
|
||||
# Cirrus has problems with the following certificate.
|
||||
|
|
@ -29,7 +24,7 @@ setup() {
|
|||
vagrant init cloud-image/fedora-${FEDORA_VERSION} --box-version ${FEDORA_BOX_VERSION}
|
||||
|
||||
# The default libvirt Vagrant VM uses 512MB.
|
||||
# Travis VMs should have around 7.5GB.
|
||||
# VMs in our CI typically have around 16GB.
|
||||
# Increasing it to 4GB should work.
|
||||
sed -i Vagrantfile -e 's,^end$, config.vm.provider :libvirt do |libvirt|'"\n"' libvirt.memory = 4096;end'"\n"'end,g'
|
||||
# Sync /tmp/criu.tar into the VM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue