language: php

env:
  global:
    - SYMFONY_VERSION="3.4.*"
    - COMPOSER_FLAGS="--prefer-stable"

matrix:
  include:
    - php: 5.5
    - php: 5.5
      env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
    - php: 5.6
    - php: 7.0
    - php: 7.1
      env: SYMFONY_VERSION="4.1.*"
    - php: 7.2
      env: SYMFONY_VERSION="4.2.*@dev"
    - php: 7.3
      env: SYMFONY_VERSION="4.1.*"
    - php: nightly
  allow_failures:
    # Allow failures on next Symfony minor, should always be tested on newest stable PHP branch
    - php: 7.2
      env: SYMFONY_VERSION="4.2.*@dev"
    - php: nightly

before_script:
  - composer self-update
  - composer require --no-update symfony/symfony:${SYMFONY_VERSION}
  - composer update $COMPOSER_FLAGS

script:
  - vendor/bin/phpunit -c phpunit.xml --coverage-text

language: php

env:
  global:
    - SYMFONY_VERSION="3.4.*"
    - COMPOSER_FLAGS="--prefer-stable"

matrix:
  include:
    - php: 5.5
    - php: 5.5
      env: COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
    - php: 5.6
    - php: 7.0
    - php: 7.1
      env: SYMFONY_VERSION="4.1.*"
    - php: 7.2
      env: SYMFONY_VERSION="4.1.*"
    - php: 7.2
      env: SYMFONY_VERSION="4.2.*@dev"
    - php: 7.3
      env: SYMFONY_VERSION="4.1.*"
    - php: nightly
  allow_failures:
    # Allow failures on next Symfony minor, should always be tested on newest stable PHP branch
    - php: 7.2
      env: SYMFONY_VERSION="4.2.*@dev"
    - php: nightly

before_script:
  - composer self-update
  - composer require --no-update symfony/symfony:${SYMFONY_VERSION}
  - composer update $COMPOSER_FLAGS

script:
  - vendor/bin/phpunit -c phpunit.xml --coverage-text

Build on 7.2 with stable deps
Build on 7.2 with stable deps
