language: php
php:
  - 7.1
  - 7.2
  - 7.3

install:
  - composer install

script:
  - $(composer config bin-dir)/phpunit --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
php:
  - 7.1
  - 7.2
  - 7.3

before_install:
  - echo 'opcache.enable_cli = 1' > $(php -r 'echo PHP_CONFIG_FILE_SCAN_DIR;')/cachetool.ini

install:
  - composer install

script:
  - $(composer config bin-dir)/phpunit --coverage-clover=coverage.clover

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

Set opcache.enable_cli before running tests
Set opcache.enable_cli before running tests

Avoids skipping tests with the message:

    OPcache extension is not loaded.
