From 89218f1da684173416481d8053eedd3a8d1a6a18 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Fri, 7 Dec 2018 18:46:34 +0100 Subject: [PATCH] [.travis.yml] Fix broken checks - Remove "sudo:false" - Update composer installation paths The Linux infrastructure migration removed support for "sudo:false" -- https://changelog.travis-ci.com/deprecation-container-based-linux-build-environment-82037 -- https://blog.travis-ci.com/2018-11-19-required-linux-infrastructure-migration --- .travis.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 80f141b9..0829ca7d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,4 @@ dist: trusty -sudo: false language: php install: @@ -17,10 +16,10 @@ install: script: - phpenv rehash # Run PHP_CodeSniffer on all versions - - ~/.composer/vendor/bin/phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p; + - ~/.config/composer/vendor/bin/phpcs . --standard=phpcs.xml --warning-severity=0 --extensions=php -p; # Check PHP compatibility for the lowest supported version - if [[ $TRAVIS_PHP_VERSION == "5.6" ]]; then - ~/.composer/vendor/bin/phpcs . --standard=phpcompatibility.xml --warning-severity=0 --extensions=php -p; + ~/.config/composer/vendor/bin/phpcs . --standard=phpcompatibility.xml --warning-severity=0 --extensions=php -p; fi # Run unit tests (stable) - if [[ $TRAVIS_PHP_VERSION == "7.0" ]]; then @@ -30,7 +29,7 @@ script: # Check PHP compatibility for all versions, starting at the lowest supported version in order to detect breaking changes - if [[ $TRAVIS_PHP_VERSION == "nightly" ]]; then phpunit --configuration=phpunit.xml --include-path=lib/; - ~/.composer/vendor/bin/phpcs . --standard=PHPCompatibility --warning-severity=0 --extensions=php -p --runtime-set testVersion 5.6-; + ~/.config/composer/vendor/bin/phpcs . --standard=PHPCompatibility --warning-severity=0 --extensions=php -p --runtime-set testVersion 5.6-; fi matrix: