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-06-03 13:16:10 +08:00
- name : "fedora32"
2019-10-31 13:38:27 +08:00
before_install :
2020-06-03 13:16:10 +08:00
- sudo ./script/install-vagrant.sh
- ln -sf Vagrantfile.fedora32 Vagrantfile
2020-03-19 10:42:41 +08:00
- 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-04-22 05:13:46 +08:00
- sudo ssh default -t 'cd /vagrant && sudo 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'
2020-04-01 09:47:06 +08:00
# cgroupv2+systemd (rootless)
- sudo ssh default -t 'cd /vagrant && sudo make localrootlessintegration RUNC_USE_SYSTEMD=yes'
# same setup but with fs2 driver (rootless) instead of systemd
2020-04-21 23:19:36 +08:00
- sudo ssh default -t 'cd /vagrant && sudo make localrootlessintegration'
2020-06-03 13:16:10 +08:00
- name : "centos7"
before_install :
- sudo ./script/install-vagrant.sh
- ln -sf Vagrantfile.centos7 Vagrantfile
- sudo vagrant up && sudo mkdir -p /root/.ssh && sudo sh -c "vagrant ssh-config >> /root/.ssh/config"
script :
# kernel 3.10 (frankenized), systemd 219
- sudo ssh default 'rpm -q centos-release kernel systemd'
# FIXME: the following unit tests are skipped (TESTFLAGS=-short):
# FAIL: TestPidsSystemd: utils_test.go:55: exec_test.go:630: unexpected error: container_linux.go:353: starting container process caused: process_linux.go:326: applying cgroup configuration for process caused: mountpoint for devices not found
# FAIL: TestRunWithKernelMemorySystemd: exec_test.go:713: runContainer failed with kernel memory limit: container_linux.go:353: starting container process caused: process_linux.go:326: applying cgroup configuration for process caused: mkdir : no such file or directory
- sudo ssh default -t 'sudo -i make -C /vagrant localunittest TESTFLAGS=-short'
- sudo ssh default -t 'sudo -i make -C /vagrant localintegration'
- sudo ssh default -t 'sudo -i make -C /vagrant localintegration RUNC_USE_SYSTEMD=1'
# FIXME: rootless is skipped because of EPERM on writing cgroup.procs
# - sudo ssh default -t 'sudo -i make -C /vagrant localrootlessintegration'
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