language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - hhvm

matrix:
  allow_failures:
    - php: hhvm
    - php: 7.0

script:
  - phpunit -c phpunit.xml.dist
  - ./tests/scripts/run-codeception-tests

before_install:
  - sudo apt-get update && sudo apt-get --reinstall install -qq language-pack-en language-pack-fr && sudo locale-gen fr_FR

before_script:
  - composer self-update || true
  - composer install --prefer-dist
  - mkdir -p tests/codeception/_output/
  - chmod 777 tests/codeception/_output/
  - mkdir -p tests/phpunit/unit/Nut/resources/
  - chmod 777 tests/phpunit/unit/Nut/resources/
  - mkdir -p app/cache
  - chmod 777 app/cache

after_script:
  - ./vendor/bin/ocular code-coverage:upload --format=php-clover coverage.xml

# cache vendor dirs
cache:
  directories:
    - vendor
    - $COMPOSER_CACHE_DIR


language: php

php:
  - 5.3
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - hhvm

matrix:
  allow_failures:
    - php: 7.0
    - php: hhvm

before_install:
  - sudo apt-get update && sudo apt-get --reinstall install -qq language-pack-en language-pack-fr && sudo locale-gen fr_FR

before_script:
  - composer self-update || true
  - composer install --prefer-dist
  - mkdir -p tests/codeception/_output/
  - chmod 777 tests/codeception/_output/
  - mkdir -p tests/phpunit/unit/Nut/resources/
  - chmod 777 tests/phpunit/unit/Nut/resources/
  - mkdir -p app/cache
  - chmod 777 app/cache
  - if [[ $TRAVIS_PHP_VERSION =~ ^hhvm ]]; then echo 'xdebug.enable = On' >> /etc/hhvm/php.ini; fi

script:
  - phpunit -c phpunit.xml.dist
  - ./tests/scripts/run-codeception-tests

after_script:
  - ./vendor/bin/ocular code-coverage:upload --format=php-clover coverage.xml

# cache vendor dirs
cache:
  directories:
    - vendor
    - $COMPOSER_CACHE_DIR


Add xdebug.enable to HHVM build php.ini
[Travis]: Add xdebug.enable to HHVM build php.ini
