From 87857c26016fbf32efc5a60b563d2ee2d15b8a2c Mon Sep 17 00:00:00 2001 From: jrfnl Date: Wed, 19 Jul 2017 07:23:20 +0200 Subject: [PATCH] :rocket: Fix the travis builds for changes in the travis infrastructure Travis CI announced they are switching to Trusty as the default distro starting July 18th and of course, this is impacting our builds. See: https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming The net effect is that PHP 5.3 will only be available on `precise`, but they have also announced that they will remove that option starting September 2017, so I'm not sure what we can do from then on. For now, this should buy us some time. The change over to `trusty` apparently also means that `libxml2` is no longer available by default. This was breaking the build for the XML code style check jobs. By setting it as one of the addon packages we require, this should be fixed again. Last point I'm addressing here is PHP 5.4 in combination with PHPCS 1.x and low PHPCS 2.x versions. For completely unfathomable reasons, this build was not passing anymore with lots of unit test failures, even though it shouldn't really be affected by the above mentioned changes. Even so, moving that build to `precise` as well, fixes it. --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index a9a8d6cae..d8b33c6bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,10 @@ sudo: false +dist: trusty + +cache: + apt: true + language: php php: @@ -19,14 +24,18 @@ matrix: include: # PHPCS 3.x cannot be run on PHP 5.3. - php: 5.3 + dist: precise env: PHPCS_VERSION=">=1.5.1,<2.0" COVERALLS_VERSION="~1.0" - php: 5.3 + dist: precise env: PHPCS_VERSION=">=2.0,<3.0" COVERALLS_VERSION="~1.0" # PHP 5.4 needs a different Coveralls version. - php: 5.4 + dist: precise env: PHPCS_VERSION=">=1.5.1,<2.0" COVERALLS_VERSION="~1.0" - php: 5.4 + dist: precise env: PHPCS_VERSION=">=2.0,<3.0" COVERALLS_VERSION="~1.0" - php: 5.4 env: PHPCS_VERSION="dev-master" COVERALLS_VERSION="~1.0" @@ -38,6 +47,10 @@ matrix: env: PHPCS_VERSION=">=2.0,<3.0" COVERALLS_VERSION="dev-master" - php: 7.0 env: PHPCS_VERSION=">=2.0,<3.0" SNIFF=1 COVERALLS_VERSION="dev-master" + addons: + apt: + packages: + - libxml2-utils - php: 7.1 env: PHPCS_VERSION=">=2.0,<3.0" COVERALLS_VERSION="dev-master"