language: php

php:
    - 5.6
    - 7.0
    - 7.1
    - 7.2
    - 7.3
    - nightly

matrix:
    include:
        - php: 7.2
          env: CS_FIXER=run
    fast_finish: true
    allow_failures:
        - php: nightly

# cache vendor dirs
cache:
    directories:
        - vendor
        - $HOME/.composer/cache

before_install:
    - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;

install:
    - composer self-update

before_script:
    - composer install -o --prefer-dist --no-interaction

script:
    - mkdir -p build/logs
    - php vendor/bin/simple-phpunit -v --coverage-clover build/logs/clover.xml
    - if [ "$CS_FIXER" = "run" ]; then php vendor/bin/php-cs-fixer fix --verbose --dry-run ; fi;

after_script:
    - php vendor/bin/coveralls -v

language: php

php:
    - 5.6
    - 7.0
    - 7.1
    - 7.2
    - 7.3
    - nightly

matrix:
    include:
        - php: 7.2
          env: CS_FIXER=run
    fast_finish: true
    allow_failures:
        - php: nightly

# cache vendor dirs
cache:
    directories:
        - vendor
        - $HOME/.composer/cache

before_install:
    - if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com ${GH_TOKEN}; fi;

install:
    - composer self-update

before_script:
    - composer install -o --prefer-dist --no-interaction

script:
    - mkdir -p build/logs
    - php vendor/bin/simple-phpunit -v --coverage-clover build/logs/clover.xml
    - if [ "$CS_FIXER" = "run" ]; then php vendor/bin/php-cs-fixer fix --verbose --dry-run ; fi;

after_script:
    - php vendor/bin/php-coveralls -v -x build/logs/clover.xml

Update path to coveralls bin
Update path to coveralls bin
