mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +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:
parent
7e6a1a7011
commit
25f3780830
3 changed files with 18 additions and 21 deletions
14
.github/workflows/docker-test.yml
vendored
Normal file
14
.github/workflows/docker-test.yml
vendored
Normal 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
|
||||
13
.travis.yml
13
.travis.yml
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue