language: php

php:
  - 7.0
  - 7.1
  - 7.2
  - hhvm

matrix:
  allow_failures:
    - php: 7.2
    - php: hhvm

install:
   - mkdir -p build/bin
   - mkdir -p build/logs
   - curl -sS https://getcomposer.org/installer | php -- --install-dir=./build/bin
   - php ./build/bin/composer.phar install

script:
   - ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml

after_script:
   - wget --output-document=build/bin/ocular.phar https://scrutinizer-ci.com/ocular.phar
   - php ./build/bin/ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml

language: php

matrix:
  include:
    - php: 7.0
    - php: 7.1
    - php: 7.2
    - php: hhvm
      env:
        - HHVMPHP7="yes"
    - php: hhvm
      env:
        - HHVMPHP7="no"

  allow_failures:
    - php: 7.2
    - php: hhvm

install:
   - mkdir -p build/bin
   - mkdir -p build/logs
   - curl -sS https://getcomposer.org/installer | php -- --install-dir=./build/bin
   - php ./build/bin/composer.phar install

before_script:
  - "if [[ ${HHVMPHP7} == 'yes' ]]; then echo 'hhvm.php7.all=1' >> /etc/hhvm/php.ini; fi"

script:
   - ./vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml

after_script:
   - wget --output-document=build/bin/ocular.phar https://scrutinizer-ci.com/ocular.phar
   - php ./build/bin/ocular.phar code-coverage:upload --format=php-clover ./build/logs/clover.xml

Improve HHVM support for the CI pipeline
Improve HHVM support for the CI pipeline
