2019-10-31 13:38:27 +08:00
|
|
|
dist: bionic
|
2016-12-24 06:37:56 +08:00
|
|
|
language: go
|
|
|
|
go:
|
2020-03-17 00:04:05 +08:00
|
|
|
- 1.14.x
|
2020-02-05 10:41:28 +08:00
|
|
|
- 1.13.x
|
2017-02-20 20:15:58 +08:00
|
|
|
- tip
|
2020-03-19 10:42:41 +08:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- /home/travis/.vagrant.d/boxes
|
2017-02-20 20:15:58 +08:00
|
|
|
matrix:
|
2019-03-15 09:48:56 +08:00
|
|
|
include:
|
2020-03-28 18:58:07 +08:00
|
|
|
- go: 1.14.x
|
2019-11-13 22:05:47 +08:00
|
|
|
name: "verify-dependencies"
|
|
|
|
script:
|
|
|
|
- make verify-dependencies
|
2020-03-17 00:04:05 +08:00
|
|
|
- go: 1.13.x
|
2020-02-05 10:41:28 +08:00
|
|
|
name: "cgroup-systemd"
|
2019-03-15 09:48:56 +08:00
|
|
|
env:
|
|
|
|
- RUNC_USE_SYSTEMD=1
|
|
|
|
script:
|
2020-04-17 13:51:21 +08:00
|
|
|
- make all
|
2019-03-15 09:48:56 +08:00
|
|
|
- sudo PATH="$PATH" make localintegration RUNC_USE_SYSTEMD=1
|
2020-03-17 00:04:05 +08:00
|
|
|
- go: 1.13.x
|
2020-02-05 10:41:28 +08:00
|
|
|
name: "cgroup-v2"
|
2019-10-31 13:38:27 +08:00
|
|
|
env:
|
2020-03-19 10:42:41 +08:00
|
|
|
- VAGRANT_VERSION=2.2.7
|
2019-10-31 13:38:27 +08:00
|
|
|
before_install:
|
|
|
|
- cat /proc/cpuinfo
|
2020-03-19 10:42:41 +08:00
|
|
|
# https://github.com/alvistack/ansible-role-virtualbox/blob/6887b020b0ca5c59ddb6620d73f053ffb84f4126/.travis.yml#L30
|
|
|
|
- sudo apt-get install -q -y bridge-utils dnsmasq-base ebtables libvirt-bin libvirt-dev qemu-kvm qemu-utils ruby-dev && wget https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_$(uname -m).deb && sudo dpkg -i vagrant_${VAGRANT_VERSION}_$(uname -m).deb && rm -f vagrant_${VAGRANT_VERSION}_$(uname -m).deb
|
|
|
|
- sudo vagrant plugin install vagrant-libvirt
|
|
|
|
- sudo vagrant up && sudo mkdir -p /root/.ssh && sudo sh -c "vagrant ssh-config >> /root/.ssh/config"
|
2019-10-31 13:38:27 +08:00
|
|
|
script:
|
2020-03-19 10:42:41 +08:00
|
|
|
- sudo ssh default sudo podman build -t test /vagrant
|
2020-02-05 21:58:25 +08:00
|
|
|
# Mounting /lib/modules into the container is necessary as CRIU wants to load (via iptables) additional modules
|
2020-03-19 10:42:41 +08:00
|
|
|
- sudo ssh default sudo podman run --privileged --cgroupns=private -v /lib/modules:/lib/modules:ro test make localunittest
|
2020-04-04 14:12:43 +08:00
|
|
|
# cgroupv2+systemd: test on vagrant host itself as we need systemd
|
|
|
|
- sudo ssh default -t 'cd /vagrant && sudo make localintegration RUNC_USE_SYSTEMD=yes'
|
2020-04-15 07:18:15 +08:00
|
|
|
# same setup but with fs2 driver instead of systemd
|
|
|
|
- sudo ssh default -t 'cd /vagrant && sudo make localintegration'
|
2017-02-20 20:15:58 +08:00
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
2016-12-24 06:37:56 +08:00
|
|
|
|
2017-03-23 07:12:55 +08:00
|
|
|
go_import_path: github.com/opencontainers/runc
|
|
|
|
|
2016-12-24 06:37:56 +08:00
|
|
|
# `make ci` uses Docker.
|
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get -qq update
|
2019-02-17 00:12:15 +08:00
|
|
|
- sudo apt-get install -y libseccomp-dev
|
2019-11-13 21:05:57 +08:00
|
|
|
- GO111MODULE=off go get -u golang.org/x/lint/golint
|
|
|
|
- GO111MODULE=off go get -u github.com/vbatts/git-validation
|
2017-03-22 02:48:39 +08:00
|
|
|
- env | grep TRAVIS_
|
2016-12-24 06:37:56 +08:00
|
|
|
|
|
|
|
script:
|
2017-03-22 02:48:39 +08:00
|
|
|
- git-validation -run DCO,short-subject -v
|
2020-04-17 13:51:21 +08:00
|
|
|
- make
|
|
|
|
- make clean ci cross
|