2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-03 07:45:17 +00:00

ci: move Travis CI Docker tests to GitHub Actions

Travis CI is no longer providing CI minutes for open source projects.

Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
Radostin Stoyanov
2021-02-03 23:01:18 +00:00
committed by Andrei Vagin
parent 77968d43c3
commit b51fb87a44
3 changed files with 18 additions and 21 deletions

14
.github/workflows/docker-test.yml vendored Normal file
View File

@@ -0,0 +1,14 @@
name: Docker Test
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Run Docker Test (${{ matrix.os }})
run: sudo make -C scripts/ci docker-test

View File

@@ -30,19 +30,6 @@ jobs:
group: edge
virt: vm
dist: bionic
- os: linux
arch: amd64
env: TR_ARCH=docker-test
dist: bionic
- os: linux
arch: amd64
env: TR_ARCH=docker-test DIST=xenial
# On xenial it should be possible to test overlayfs;
# broken on the latest bionic kernel
dist: xenial
allow_failures:
- env: TR_ARCH=docker-test
- env: TR_ARCH=docker-test DIST=xenial
script:
- sudo make CCACHE=1 -C scripts/ci $TR_ARCH
after_success:

View File

@@ -21,14 +21,10 @@ add-apt-repository \
. /etc/lsb-release
if [ "$DISTRIB_RELEASE" = "18.04" ]; then
# overlayfs behaves differently on Ubuntu (18.04) and breaks CRIU
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1857257
# Switch to devicemapper
echo '{ "experimental": true, "storage-driver": "devicemapper" }' > /etc/docker/daemon.json
else
echo '{ "experimental": true }' > /etc/docker/daemon.json
fi
# overlayfs behaves differently on Ubuntu (18.04) and breaks CRIU
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1857257
# Switch to devicemapper
echo '{ "experimental": true, "storage-driver": "devicemapper" }' > /etc/docker/daemon.json
service docker restart