language: php

php:
  - 5.5
  - 5.6
  - 7.0
  - nightly

cache:
  directories:
    - vendor

install:
  - phpenv config-rm xdebug.ini || true
  - composer config --global discard-changes true
  - composer install
  - composer require satooshi/php-coveralls dev-master --dev
  - composer show --installed

script:
  - find -name "*.php" -not -path "./vendor/*" -print0 | xargs -n 1 -0 php -l
  - $(php -r 'if (PHP_MAJOR_VERSION >= 7) echo "phpdbg -qrr"; else echo "php";') vendor/bin/phpunit --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

php:
  - 5.5
  - 5.6
  - 7.0
  - nightly

cache:
  directories:
    - vendor

install:
  - phpenv config-rm xdebug.ini || true
  - composer config --global discard-changes true
  - composer update
  - composer require satooshi/php-coveralls dev-master --dev
  - composer show --installed

script:
  - find -name "*.php" -not -path "./vendor/*" -print0 | xargs -n 1 -0 php -l
  - $(php -r 'if (PHP_MAJOR_VERSION >= 7) echo "phpdbg -qrr"; else echo "php";') vendor/bin/phpunit --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

Use 'composer update' instead of 'composer install'
Use 'composer update' instead of 'composer install'

We need another PHPUnit version for PHP 5.5.
