diff --git a/.travis.yml b/.travis.yml index 98039569..14062981 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,13 +3,11 @@ language: php php: - hhvm - - 7.2 - 7.1 - 7.0 - 5.6 - 5.5 - 5.4 - - 5.3 # This triggers builds to run on the new (faster) TravisCI infrastructure. # See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/ @@ -24,11 +22,16 @@ env: - PATH="${HOME}/bin:${PATH}" matrix: + include: + - php: 7.2 + env: SNIFF=1 + - php: 5.3 + # As 'trusty' is not supporting PHP 5.2/5.3 anymore, we need to force using 'precise'. + dist: precise + allow_failures: - php: hhvm - - php: 5.5 - - php: 5.4 - - php: 5.3 + fast_finish: true before_install: @@ -43,5 +46,6 @@ script: - find . -type f -name "*.php" -print0 | xargs -0 -n1 php -l - composer validate - travis_wait composer install --no-interaction --no-progress --no-scripts --no-suggest --optimize-autoloader --prefer-dist --verbose - - ./vendor/bin/phpcs --standard=psr2 src/ + - if [[ "$SNIFF" == "1" ]]; then composer install-codestandards; fi + - if [[ "$SNIFF" == "1" ]]; then ./vendor/bin/phpcs; fi - ./vendor/bin/security-checker -n security:check --end-point=http://security.sensiolabs.org/check_lock