From 5362238d03ad8e67d18d91d08152c53a1ac3dc15 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Thu, 10 Sep 2015 15:44:19 +0200 Subject: [PATCH] Improve the travis setup - switch to the container-based infrastructure rather than the legacy one - persist the composer download cache between builds to reuse downloaded archives - add testing on HHVM and PHP 7 --- .travis.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c5e5ac1e..757c0e3a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,31 @@ language: php +sudo: false + +cache: + directories: + - $HOME/.composer/cache/files + php: - 5.3 - 5.4 - 5.5 - 5.6 + - 7.0 + - hhvm + +matrix: + fast_finish: true + allow_failures: + - php: hhvm + - php: 7.0 + +before_install: + - composer self-update + +install: + - composer install before_script: - git config --global user.email test@test.com - git config --global user.name "Test User" - - composer self-update - - composer install --dev --no-interaction --prefer-source