language: php

services:
  - mongodb

php:
  - 5.4
  - 5.5
  - 5.6

before_script:
  - composer self-update
  - echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  # this trick simulate a "no interaction"
  - printf "\n" | pecl install channel://pecl.php.net/apcu-4.0.6
  - printf "\n" | pecl install -f mongo-1.5.6

script:
  - ant -f app/build.xml prepare
  - phpunit -c app --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

language: php

services:
  - mongodb

php:
  - 5.4
  - 5.5
  - 5.6

before_script:
  - composer self-update
  - echo 'date.timezone = "Europe/Paris"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
  # this trick simulate a "no interaction"
  - printf "\n" | pecl install channel://pecl.php.net/apcu-4.0.7 # still no stable version ...
  - printf "\n" | pecl install mongo

script:
  - ant -f app/build.xml prepare
  - phpunit -c app --coverage-clover=coverage.clover

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover coverage.clover

Use default version for pecl package
Use default version for pecl package
