Skip to content

Commit cd79e0e

Browse files
committed
travis: fix Xenial tests not being run on master
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 48fb479 commit cd79e0e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ env:
2020

2121
matrix:
2222
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)
23+
# Skip testing previous LTS (Xenial / Ubuntu 16.04 LTS) on pull requests
24+
- if: type != pull_request
2525
os: linux
2626
dist: xenial
2727
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)
28+
- if: type != pull_request
2929
os: linux
3030
dist: xenial
3131
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)
32+
- if: type != pull_request
3333
os: linux
3434
dist: xenial
3535
env: TRAVIS_GOOS=linux TEST_RUNTIME=io.containerd.runtime.v1.linux TRAVIS_CGO_ENABLED=1 TRAVIS_DISTRO=xenial

0 commit comments

Comments
 (0)