language: php

php:
    - '5.6'
    - '7.0'
    - 'nightly'

install:
    - composer self-update
    - composer install --no-interaction --prefer-source --dev

script: phpunit --verbose --coverage-text --coverage-clover=coverage.clover

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

allow_failures:
    - php: nightly
language: php

php:
    - '5.6'
    - '7.0'
#    - 'nightly' # Disabled because xdebug_get_headers function missing

install:
    - composer self-update
    - composer install --no-interaction --prefer-source --dev

script: phpunit --verbose --coverage-text --coverage-clover=coverage.clover

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

allow_failures:
    - php: nightly

Disable PHP Unit on nightly build
Disable PHP Unit on nightly build
