language: php
sudo: false

php:
  - 5.6
  - 7.0

before_script:
  - composer self-update
  - composer require satooshi/php-coveralls:dev-master
  - composer install
  - git clone https://github.com/kelunik/travis-php && travis-php/install.sh master

script:
  - $(php -r 'if (PHP_MAJOR_VERSION >= 7) echo "phpdbg -qrr"; else echo "php";') vendor/bin/phpunit -c phpunit.xml --coverage-text --coverage-clover build/logs/clover.xml
  - php vendor/bin/php-cs-fixer --diff --dry-run -v fix

after_script:
  - php vendor/bin/coveralls -v

language: php
sudo: false

php:
  - 5.6
  - 7.0
  - nightly

before_script:
  - composer self-update
  - composer require satooshi/php-coveralls:dev-master
  - composer install

script:
  - $(php -r 'if (PHP_MAJOR_VERSION >= 7) echo "phpdbg -qrr"; else echo "php";') vendor/bin/phpunit -c phpunit.xml --coverage-text --coverage-clover build/logs/clover.xml
  - php vendor/bin/php-cs-fixer --diff --dry-run -v fix

after_script:
  - php vendor/bin/coveralls -v

Remove outdated PHP 7 nightly installation
Remove outdated PHP 7 nightly installation
