From ff20bab4352c2caab8ee83a3166a1665691904b8 Mon Sep 17 00:00:00 2001 From: Walt Sorensen Date: Mon, 22 Jan 2018 18:13:27 -0700 Subject: [PATCH] Simplify Matrix dist: trusty is now the default container os: linux is always true unless otherwise specified in the matrix only need to specify sudo: false once Note: if you need sudo: true for a single item in the matrix you can add it to that single matrix line Note2: if you need a different dist for a single job in the matrix can add it to that single matrix line Note3: if you need a different os for a single job in the matrix can add it to that single matrix line no need for all the duplication --- .travis.yml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index 69e4007db..48b12b962 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +sudo: false language: php addons: @@ -8,26 +9,11 @@ addons: matrix: include: - - os: linux - dist: trusty - sudo: false - php: 5.5 - - os: linux - dist: trusty - sudo: false - php: 5.6 - - os: linux - dist: trusty - sudo: false - php: 7.0 - - os: linux - dist: trusty - sudo: false - php: 7.1 - - os: linux - dist: trusty - sudo: false - php: 7.2 + - php: 5.5 + - php: 5.6 + - php: 7.0 + - php: 7.1 + - php: 7.2 services: - mongodb