sudo: false
language: php
php:
  - 7.0
  - 5.6
  - 5.5
  - 5.4
install:
  - composer self-update && composer install --no-interaction --prefer-source
script:
  - vendor/bin/atoum
  - vendor/bin/phpcs --standard=phpcs.xml
after_script:
  - |
    echo "
    \$clover = new atoum\\reports\\asynchronous\\clover();
    \$runner->addReport(\$clover);
    \$writer = new atoum\\writers\\file('atoum.clover');
    \$clover->addWriter(\$writer);
    " >> .atoum.php && vendor/bin/atoum
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover atoum.clover

sudo: false
language: php
php:
  - 7.0
  - 5.6
  - 5.5
  - 5.4
install:
  - composer self-update
  - if [[ $TRAVIS_PHP_VERSION = 5.4 ]]; then composer remove --dev hoa/console --no-interaction; fi;
  - composer install --no-interaction --prefer-source
script:
  - vendor/bin/atoum
  - vendor/bin/phpcs --standard=phpcs.xml
after_script:
  - |
    echo "
    \$clover = new atoum\\reports\\asynchronous\\clover();
    \$runner->addReport(\$clover);
    \$writer = new atoum\\writers\\file('atoum.clover');
    \$clover->addWriter(\$writer);
    " >> .atoum.php && vendor/bin/atoum
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover atoum.clover

Handle PHP5.4 compat in Travis build
Handle PHP5.4 compat in Travis build

I've added the hoa/console lib in dev dependencies to create the robots test script more easily.
This lib is not compatible with PHP5.4, I remove it from composer.json before installing dependencies.
