language: php

php:
    - 7.1
    - nightly

cache:
    yarn: true
    directories:
        - ~/.composer/cache/files

before_install:
    - echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini

install:
    - composer update --prefer-dist

before_script:
    - (cd tests/Application && bin/console doctrine:schema:create --env=test --no-interaction)
    - (cd tests/Application && bin/console doctrine:schema:create --env=test_relative --no-interaction)

script:
    - composer validate --strict --no-check-all
    - vendor/bin/phpspec run
    - vendor/bin/phpunit --coverage-clover coverage.clover --stderr --verbose

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

language: php

php:
    - 7.1
    - 7.2
    - nightly

cache:
    yarn: true
    directories:
        - ~/.composer/cache/files

before_install:
    - echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini

install:
    - composer update --prefer-dist

before_script:
    - (cd tests/Application && bin/console doctrine:schema:create --env=test --no-interaction)
    - (cd tests/Application && bin/console doctrine:schema:create --env=test_relative --no-interaction)

script:
    - composer validate --strict --no-check-all
    - vendor/bin/phpspec run
    - vendor/bin/phpunit --coverage-clover coverage.clover --stderr --verbose

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

Test package also against PHP 7.2
Test package also against PHP 7.2