language: php

php:
    - 5.3
    - 5.4
    - 5.5

before_script:
    - git clone https://github.com/nicolasff/phpredis.git && cd phpredis
    - phpize > /dev/null
    - ./configure > /dev/null
    - sudo make install > /dev/null && cd ..
    - composer install --dev --no-progress --no-scripts --no-custom-installers

script: ./vendor/bin/phpunit

language: php

php:
    - 5.3
    - 5.4
    - 5.5

before_script:
    - pecl install phpredis
    - echo "extension=<extension>.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
    - mkdir ~/.composer
    - echo '{\"config\":{\"github-oauth\": {\"github.com\":\"fa354b2f030836334eac842f8fd69a03e353d247\"}}}' > ~/.composer/config.json
    - composer install --dev

script: ./vendor/bin/phpunit

Use pecl for phpredis install instead of cloning
Use pecl for phpredis install instead of cloning
