2019-10-31 13:38:27 +08:00
|
|
|
dist: bionic
|
2016-12-24 06:37:56 +08:00
|
|
|
language: go
|
|
|
|
go:
|
2019-03-28 20:36:09 +08:00
|
|
|
- 1.12.x
|
2020-02-05 10:41:28 +08:00
|
|
|
- 1.13.x
|
|
|
|
- 1.x
|
2017-02-20 20:15:58 +08:00
|
|
|
- tip
|
|
|
|
|
|
|
|
matrix:
|
2019-03-15 09:48:56 +08:00
|
|
|
include:
|
2019-11-13 22:05:47 +08:00
|
|
|
- go: 1.x
|
|
|
|
name: "verify-dependencies"
|
|
|
|
script:
|
|
|
|
- make verify-dependencies
|
2019-03-28 20:36:09 +08:00
|
|
|
- go: 1.12.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:
|
|
|
|
- make BUILDTAGS="${BUILDTAGS}" all
|
|
|
|
- sudo PATH="$PATH" make localintegration RUNC_USE_SYSTEMD=1
|
2019-10-31 13:38:27 +08:00
|
|
|
- go: 1.12.x
|
2020-02-05 10:41:28 +08:00
|
|
|
name: "cgroup-v2"
|
2019-10-31 13:38:27 +08:00
|
|
|
env:
|
|
|
|
- VIRTUALBOX_VERSION=6.0
|
|
|
|
- VAGRANT_VERSION=2.2.6
|
|
|
|
- FEDORA_VERSION=31
|
|
|
|
before_install:
|
|
|
|
- cat /proc/cpuinfo
|
|
|
|
- wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add - && sudo sh -c "echo deb https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib >> /etc/apt/sources.list" && sudo apt-get update && sudo apt-get install -yq build-essential gcc make linux-headers-$(uname -r) virtualbox-${VIRTUALBOX_VERSION} && sudo usermod -aG vboxusers $(whoami)
|
|
|
|
- wget https://releases.hashicorp.com/vagrant/${VAGRANT_VERSION}/vagrant_${VAGRANT_VERSION}_$(uname -m).deb && sudo dpkg -i vagrant_${VAGRANT_VERSION}_$(uname -m).deb
|
|
|
|
- vagrant init bento/fedora-${FEDORA_VERSION} && vagrant up && mkdir -p ~/.ssh && vagrant ssh-config >> ~/.ssh/config
|
|
|
|
- ssh default sudo dnf install -y podman
|
|
|
|
script:
|
|
|
|
- ssh default sudo podman build -t test /vagrant
|
|
|
|
- ssh default sudo podman run --privileged --cgroupns=private test make localunittest
|
2017-02-20 20:15:58 +08:00
|
|
|
allow_failures:
|
|
|
|
- go: tip
|
2020-02-05 10:41:28 +08:00
|
|
|
- name: "cgroup-v2"
|
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
|
|
|
|
|
|
|
|
env:
|
|
|
|
global:
|
2020-03-16 01:25:33 +08:00
|
|
|
- BUILDTAGS="seccomp apparmor selinux"
|
2016-12-24 06:37:56 +08:00
|
|
|
|
|
|
|
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
|
2016-12-24 06:37:56 +08:00
|
|
|
- make BUILDTAGS="${BUILDTAGS}"
|
2018-06-16 08:29:52 +08:00
|
|
|
- make BUILDTAGS="${BUILDTAGS}" clean ci cross
|