language: php

sudo: false

cache:
    directories:
        - $HOME/.composer/cache/files
        - $HOME/.phpunit-bridge

env:
    global:
        - SYMFONY_PHPUNIT_DIR=$HOME/.phpunit-bridge
        - SYMFONY_PHPUNIT_REMOVE='' # don't remove prophecy
        - SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1

php: [7.2, 7.1, 7.0, 5.6]

matrix:
    include:
        - php: 7.2
          env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
        - php: 5.3
          dist: precise
        - php: 5.4
          dist: trusty
        - php: 5.5
          dist: trusty
        - php: 7.2
          env: STABILITY=dev

before_install:
    - if [[ -v $STABILITY ]]; then composer config minimum-stability $STABILITY; fi;

install:
    - composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
    - vendor/bin/simple-phpunit install

script: vendor/bin/simple-phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
    - wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover

language: php

sudo: false

cache:
    directories:
        - $HOME/.composer/cache/files
        - $HOME/.phpunit-bridge

env:
    global:
        - SYMFONY_PHPUNIT_DIR=$HOME/.phpunit-bridge
        - SYMFONY_PHPUNIT_REMOVE='' # don't remove prophecy
        - SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1

php: [7.4, 7.3, 7.2, 7.1, 7.0, 5.6]

matrix:
    include:
        - php: 7.2
          env: COMPOSER_FLAGS='--prefer-lowest --prefer-stable'
        - php: 5.3
          dist: precise
        - php: 5.4
          dist: trusty
        - php: 5.5
          dist: trusty
        - php: 7.4
          env: STABILITY=dev

before_install:
    - if [[ -v $STABILITY ]]; then composer config minimum-stability $STABILITY; fi;

install:
    - composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
    - vendor/bin/simple-phpunit install

script: vendor/bin/simple-phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
    - wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover

Add PHP 7.3 and 7.4 on Travis
Add PHP 7.3 and 7.4 on Travis
