2019-10-31 13:38:27 +08:00
|
|
|
dist: bionic
|
2016-12-24 06:37:56 +08:00
|
|
|
language: go
|
|
|
|
go:
|
2018-10-20 17:54:38 +08:00
|
|
|
- 1.11.x
|
2019-03-28 20:36:09 +08:00
|
|
|
- 1.12.x
|
2017-02-20 20:15:58 +08:00
|
|
|
- tip
|
|
|
|
|
|
|
|
matrix:
|
2019-03-15 09:48:56 +08:00
|
|
|
include:
|
2019-03-28 20:36:09 +08:00
|
|
|
- go: 1.12.x
|
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
|
|
|
|
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
|
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:
|
|
|
|
- BUILDTAGS="seccomp apparmor selinux ambient"
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo apt-get -qq update
|
2019-02-17 00:12:15 +08:00
|
|
|
- sudo apt-get install -y libseccomp-dev
|
2018-10-12 22:22:35 +08:00
|
|
|
- go get -u golang.org/x/lint/golint
|
2016-12-24 06:37:56 +08:00
|
|
|
- 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
|