2016-12-24 06:37:56 +08:00
|
|
|
language: go
|
|
|
|
go:
|
|
|
|
- 1.7.x
|
2017-02-20 20:15:58 +08:00
|
|
|
- 1.8.x
|
|
|
|
- tip
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
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
|
|
|
|
- sudo apt-get install -y libseccomp-dev libapparmor-dev
|
|
|
|
- go get -u github.com/golang/lint/golint
|
|
|
|
- go get -u github.com/vbatts/git-validation
|
|
|
|
- go get -u github.com/mvdan/sh/cmd/shfmt
|
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}"
|
|
|
|
- make BUILDTAGS="${BUILDTAGS}" clean validate test
|