Skip to content

Commit 48fb479

Browse files
authored
Merge pull request #3606 from thaJeztah/bump_travis_bionic
travis: add Bionic (Ubuntu 18.04) to test matrix
2 parents b039c39 + fa546dc commit 48fb479

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

.travis.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dist: xenial
1+
dist: bionic
22
sudo: required
33
# setup travis so that we can run containers for integration tests
44
services:
@@ -13,11 +13,27 @@ go:
1313
- "1.12.x"
1414

1515
env:
16-
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v1 TRAVIS_CGO_ENABLED=1
17-
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v2 TRAVIS_CGO_ENABLED=1
18-
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runtime.v1.linux TRAVIS_CGO_ENABLED=1
16+
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v1 TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=bionic
17+
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v2 TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=bionic
18+
- TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runtime.v1.linux TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=bionic
1919
- TRAVIS_GOOS=darwin TRAVIS_CGO_ENABLED=0
2020

21+
matrix:
22+
include:
23+
# On master, also test against the previous LTS (Xenial / Ubuntu 16.04 LTS)
24+
- if: branch = master AND type NOT IN (push, pull_request)
25+
os: linux
26+
dist: xenial
27+
env: TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v1 TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=xenial
28+
- if: branch = master AND type NOT IN (push, pull_request)
29+
os: linux
30+
dist: xenial
31+
env: TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runc.v2 TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=xenial
32+
- if: branch = master AND type NOT IN (push, pull_request)
33+
os: linux
34+
dist: xenial
35+
env: TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runtime.v1.linux TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=xenial
36+
2137
go_import_path: github.com/containerd/containerd
2238

2339
addons:
@@ -31,7 +47,7 @@ addons:
3147
- python-minimal
3248
- libcap-dev
3349
- libaio-dev
34-
- libprotobuf-c0-dev
50+
- libprotobuf-c-dev
3551
- libprotobuf-dev
3652
- socat
3753

0 commit comments

Comments
 (0)