mirror of https://gitee.com/openkylin/runc.git
55 lines
1.9 KiB
YAML
55 lines
1.9 KiB
YAML
dist: bionic
|
|
language: go
|
|
go:
|
|
- 1.11.x
|
|
- 1.12.x
|
|
- tip
|
|
|
|
matrix:
|
|
include:
|
|
- go: 1.12.x
|
|
env:
|
|
- RUNC_USE_SYSTEMD=1
|
|
script:
|
|
- make BUILDTAGS="${BUILDTAGS}" all
|
|
- sudo PATH="$PATH" make localintegration RUNC_USE_SYSTEMD=1
|
|
- 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
|
|
allow_failures:
|
|
- go: tip
|
|
|
|
go_import_path: github.com/opencontainers/runc
|
|
|
|
# `make ci` uses Docker.
|
|
sudo: required
|
|
services:
|
|
- docker
|
|
|
|
env:
|
|
global:
|
|
- BUILDTAGS="seccomp apparmor selinux ambient"
|
|
|
|
before_install:
|
|
- sudo apt-get -qq update
|
|
- sudo apt-get install -y libseccomp-dev
|
|
- go get -u golang.org/x/lint/golint
|
|
- go get -u github.com/vbatts/git-validation
|
|
- env | grep TRAVIS_
|
|
|
|
script:
|
|
- git-validation -run DCO,short-subject -v
|
|
- make BUILDTAGS="${BUILDTAGS}"
|
|
- make BUILDTAGS="${BUILDTAGS}" clean ci cross
|