64 lines
2.3 KiB
YAML
64 lines
2.3 KiB
YAML
dist: bionic
|
|
language: go
|
|
go:
|
|
- 1.14.x
|
|
- 1.13.x
|
|
- tip
|
|
cache:
|
|
directories:
|
|
- /home/travis/.vagrant.d/boxes
|
|
matrix:
|
|
include:
|
|
- go: 1.14.x
|
|
name: "verify-dependencies"
|
|
script:
|
|
- make verify-dependencies
|
|
- go: 1.13.x
|
|
name: "cgroup-systemd"
|
|
env:
|
|
- RUNC_USE_SYSTEMD=1
|
|
script:
|
|
- make all
|
|
- sudo PATH="$PATH" make localintegration RUNC_USE_SYSTEMD=1
|
|
- go: 1.13.x
|
|
name: "cgroup-v2"
|
|
env:
|
|
- VAGRANT_VERSION=2.2.7
|
|
before_install:
|
|
- cat /proc/cpuinfo
|
|
# 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"
|
|
script:
|
|
- sudo ssh default -t 'cd /vagrant && sudo make localunittest'
|
|
# cgroupv2+systemd: test on vagrant host itself as we need systemd
|
|
- sudo ssh default -t 'cd /vagrant && sudo make localintegration RUNC_USE_SYSTEMD=yes'
|
|
# same setup but with fs2 driver instead of systemd
|
|
- sudo ssh default -t 'cd /vagrant && sudo make localintegration'
|
|
# 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
|
|
- sudo ssh default -t 'cd /vagrant && sudo make localrootlessintegration'
|
|
allow_failures:
|
|
- go: tip
|
|
|
|
go_import_path: github.com/opencontainers/runc
|
|
|
|
# `make ci` uses Docker.
|
|
sudo: required
|
|
services:
|
|
- docker
|
|
|
|
before_install:
|
|
- sudo apt-get -qq update
|
|
- sudo apt-get install -y libseccomp-dev
|
|
- GO111MODULE=off go get -u golang.org/x/lint/golint
|
|
- GO111MODULE=off go get -u github.com/vbatts/git-validation
|
|
- env | grep TRAVIS_
|
|
|
|
script:
|
|
- git-validation -run DCO,short-subject -v
|
|
- make
|
|
- make clean ci cross
|