From 2e24b5308f19a94ef038e9c5e134a294618f55fe Mon Sep 17 00:00:00 2001 From: Chris Boulton Date: Fri, 14 Oct 2016 15:26:02 -0700 Subject: [PATCH 1/2] don't test against php 5.3, 5.4, 5.5. don't allow failures on php7 and hhvm --- .travis.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 46d3919..8a3ac02 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,11 @@ language: php php: - - 5.3 - - 5.4 - - 5.5 - 5.6 - 7.0 - hhvm - -matrix: - allow_failures: - - php: hhvm - - php: 7.0 env: - REDIS_STANDALONE=0 - REDIS_STANDALONE=1 - before_script: - sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then wget https://github.com/nicolasff/phpredis/archive/2.2.3.zip -O php-redis.zip && unzip php-redis.zip; fi" - sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then cd phpredis-2.2.3/ && phpize && ./configure && make && make install; fi" From 89895644688524033366cb52ce827c431049ce00 Mon Sep 17 00:00:00 2001 From: Chris Boulton Date: Fri, 14 Oct 2016 15:49:33 -0700 Subject: [PATCH 2/2] enable redis extension on supported php versions --- .travis.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a3ac02..2fa42c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,16 @@ language: php -php: - - 5.6 - - 7.0 - - hhvm -env: - - REDIS_STANDALONE=0 - - REDIS_STANDALONE=1 +matrix: + include: + - php: 5.6 + env: ENABLE_REDIS_EXT=0 + - php: 5.6 + env: ENABLE_REDIS_EXT=1 + - php: 7.0 + env: ENABLE_REDIS_EXT=0 + - php: 7.0 + env: ENABLE_REDIS_EXT=1 + - php: hhvm + env: ENABLE_REDIS_EXT=0 before_script: - - sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then wget https://github.com/nicolasff/phpredis/archive/2.2.3.zip -O php-redis.zip && unzip php-redis.zip; fi" - - sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then cd phpredis-2.2.3/ && phpize && ./configure && make && make install; fi" - - sh -c "if [ $REDIS_STANDALONE -eq 0 ]; then echo \"extension=redis.so\" >> `php --ini | grep \"Loaded Configuration\" | sed -e \"s|.*:\s*||\"`; fi" + - sh -c "if [ $ENABLE_REDIS_EXT -eq 1 ]; then echo \"extension=redis.so\" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi" - composer install