language: php

sudo: false

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - hhvm

before_script:
  - wget http://get.sensiolabs.org/php-cs-fixer.phar -O php-cs-fixer.phar
  - composer self-update
  - composer install --prefer-source --no-interaction --dev

script:
  - php php-cs-fixer.phar fix --level=psr2 --dry-run -v
  - phpunit --coverage-clover=coverage.clover

after_script:
  - if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
  - if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

language: php

sudo: false

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - hhvm

before_script:
  - wget http://get.sensiolabs.org/php-cs-fixer.phar -O php-cs-fixer.phar
  - composer self-update
  - composer install --prefer-source --no-interaction --dev

script:
  - php php-cs-fixer.phar fix --level=psr2 --dry-run -v src/
  - phpunit --coverage-clover=coverage.clover

after_script:
  - if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
  - if [ "$TRAVIS_PHP_VERSION" != "7.0" ] && [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi

Check codestyle only src/ directory for PSR2
Check codestyle only src/ directory for PSR2
