language: php

php:
  - 5.3
  - 5.6
  - 7
  - hhvm

branches:
  only:
    - service/travis

addons:
  apt:
    packages:
    - php5-dev

before_install:
  - wget https://github.com/phpredis/phpredis/archive/develop.zip && unzip develop.zip && cd phpredis-develop
  - phpize
  - ./configure
  - make
  - sudo sed -i -e '$a\' `php -r 'echo php_ini_loaded_file();'`
  - echo 'extension='`pwd`'/modules/redis.so' | sudo tee -a `php -r 'echo php_ini_loaded_file();'` > /dev/null
  - cd ../

install:
  - composer install --no-dev

services:
  - redis-server

script: phpunit --configuration phpunit.xml.dist --coverage-text
language: php

php:
  - 5.6

branches:
  only:
    - master

addons:
  apt:
    packages:
    - php5-dev

before_install:
  - wget https://github.com/phpredis/phpredis/archive/develop.zip && unzip develop.zip && cd phpredis-develop
  - phpize
  - ./configure
  - make
  - sudo sed -i -e '$a\' `php -r 'echo php_ini_loaded_file();'`
  - echo 'extension='`pwd`'/modules/redis.so' | sudo tee -a `php -r 'echo php_ini_loaded_file();'` > /dev/null
  - cd ../

install:
  - composer install --no-dev

services:
  - redis-server

script: phpunit --configuration phpunit.xml.dist --coverage-text
Set only branch master and leave php 5.6 only
Set only branch master and leave php 5.6 only
