Skip to content

Commit fa546dc

Browse files
committed
travis: don't run old Xenial LTS on pull requests
The branch (for pull requests), is the base/target branch, so for pull requests against master, these would still be run. From the travis documentation: > branch (the current branch name; for pull requests: the base branch name) This patch excludes these jobs by not running them for pull request (event type=pull_request or event type=push (when rebasing a pull request)). Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 94e4b68 commit fa546dc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ env:
2121
matrix:
2222
include:
2323
# On master, also test against the previous LTS (Xenial / Ubuntu 16.04 LTS)
24-
- if: branch = master
24+
- if: branch = master AND type NOT IN (push, 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
28+
- if: branch = master AND type NOT IN (push, 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
32+
- if: branch = master AND type NOT IN (push, 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)