language: php

php:
  - '7.0'
  - '7.1'
  - nightly

# Install test coverage package.
install:
  - composer require satooshi/php-coveralls

# Install packages and create test coverage log directory.
before_script:
  - composer self-update
  - composer install --dev --no-interaction
  - phpenv config-rm xdebug.ini
  - mkdir -p build/logs

# Run tests and generate test coverage report.
script:
  - phpdbg -qrr phpunit -d api_key=$API_KEY --coverage-clover build/logs/clover.xml

# Submit test coverage report to Coveralls.
after_success:
  - vendor/bin/coveralls -v

# Cache composer bits for faster test suite runs.
cache:
  directories:
  - $HOME/.composer/cache

notifications:
  email:
    on_success: change
    on_failure: always

language: php

php:
  - '7.0'
  - '7.1'
  - nightly

# Install test coverage package.
install:
  - composer require satooshi/php-coveralls

# Install packages and create test coverage log directory.
before_script:
  - composer self-update
  - composer install --dev --no-interaction
  - mkdir -p build/logs

# Run tests and generate test coverage report.
script:
  - phpunit -d api_key=$API_KEY --coverage-clover build/logs/clover.xml

# Submit test coverage report to Coveralls.
after_success:
  - vendor/bin/coveralls -v

# Cache composer bits for faster test suite runs.
cache:
  directories:
  - $HOME/.composer/cache

notifications:
  email:
    on_success: change
    on_failure: always

Revert "Replaces debug with phpdbg for faster test coverage report generation."
Revert "Replaces debug with phpdbg for faster test coverage report generation."

This reverts commit ccbf22aa7ca5b91038bc3af117a7c8a5a155edaf.
