language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - hhvm

env:
  matrix:
    - ES_COMPOSER_NODEV=no
    - ES_COMPOSER_NODEV=yes

install:
  - /bin/bash ansible/provision.sh

before_script:
  - mkdir -p build/logs
  - echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini

script:
  - phpunit -c test/phpunit-travis.xml

after_script:
  - cat /var/log/elasticsearch/*.log
  - cat /var/log/nginx/*.log
  - cat build/logs/phpunit-tap.log
  - sudo composer require satooshi/php-coveralls --no-ansi --no-progress --no-interaction
  - php vendor/bin/coveralls -v

language: php

php:
  - 5.4
  - 5.5
  - 5.6
  - hhvm

env:
  matrix:
    - ES_COMPOSER_NODEV=no
    - ES_COMPOSER_NODEV=yes

install:
  - /bin/bash ansible/provision.sh

before_script:
  - mkdir -p build/logs
  - sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi;'

script:
  - phpunit -c test/phpunit-travis.xml

after_script:
  - cat /var/log/elasticsearch/*.log
  - cat /var/log/nginx/*.log
  - cat build/logs/phpunit-tap.log
  - sudo composer require satooshi/php-coveralls --no-ansi --no-progress --no-interaction
  - php vendor/bin/coveralls -v

Exclude memcache installation for hhvm
Exclude memcache installation for hhvm
