language: php

sudo: false

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

matrix:
    include:
        # Skip testing Symfony 2.8, the WebTest does not work
        - php: 5.6
          env: SYMFONY_LTS='^3'
        - php: 7.0
          env: SYMFONY_LTS='^3'
        # Symfony 4
        - php: 7.0
        - php: 7.1
        - php: 7.2

before_install:
  - if [ "$SYMFONY_LTS" != "" ]; then composer require --dev --no-update symfony/lts=$SYMFONY_LTS; fi

install:
  - composer update --prefer-dist
  - ./phpunit install

script: ./phpunit

language: php

sudo: false

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

matrix:
    include:
        # Skip testing Symfony 2.8, the WebTest does not work
        - php: 5.6
          env: SYMFONY_LTS='^3'
        - php: 7.0
          env: SYMFONY_LTS='^3'
        # Symfony 4
        - php: 7.0
        - php: 7.1
        - php: 7.2

before_install:
  - if [ "$SYMFONY_LTS" != "" ]; then composer require --dev --no-update symfony/lts=$SYMFONY_LTS; fi

install:
  - php -d memory_limit=-1 `which composer` update --prefer-dist
  - ./phpunit install

script: ./phpunit

Remove memory limit during composer install
Remove memory limit during composer install
