sudo: false
language: php

php:
  - 7.2
  - 7.1

env:
  - SYMFONY_VERSION=4.2.*
  - SYMFONY_VERSION=4.1.*
  - SYMFONY_VERSION=4.0.*
  - SYMFONY_VERSION=3.4.*

matrix:
  fast_finish: true
  include:
  - php: 7.0
    env: SYMFONY_VERSION=3.4.*
  - php: 5.6
    env: SYMFONY_VERSION=3.4.*
  - php: 5.5
    env: SYMFONY_VERSION=3.4.*

before_script:
  - echo 'memory_limit=-1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - mysql -e "create database symfony;"
  - mysql -e "set global wait_timeout=600"
  - composer self-update
  - rm composer.lock # Prevent dependency problems
  - COMPOSER_MEMORY_LIMIT=-1 travis_retry composer require "symfony/symfony:${SYMFONY_VERSION}"
  - sed -i 's/utf8mb4/utf8/' Resources/config/aimeos_shop.yml

script:
  - vendor/bin/phpunit --coverage-clover coverage.xml

after_success:
  - php vendor/bin/coveralls

sudo: false
language: php

php:
  - 7.2
  - 7.1

env:
  - SYMFONY_VERSION=4.2.*
  - SYMFONY_VERSION=4.1.*
  - SYMFONY_VERSION=4.0.*
  - SYMFONY_VERSION=3.4.*

matrix:
  fast_finish: true
  include:
  - php: 7.0
    env: SYMFONY_VERSION=3.4.*
  - php: 5.6
    env: SYMFONY_VERSION=3.4.*
  - php: 5.5
    env: SYMFONY_VERSION=3.4.*
  allow_failures:
    - php: 5.6
    - php: 5.5

before_script:
  - echo 'memory_limit=-1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  - mysql -e "create database symfony;"
  - mysql -e "set global wait_timeout=600"
  - composer self-update
  - rm composer.lock # Prevent dependency problems
  - COMPOSER_MEMORY_LIMIT=-1 travis_retry composer require "symfony/symfony:${SYMFONY_VERSION}"
  - sed -i 's/utf8mb4/utf8/' Resources/config/aimeos_shop.yml

script:
  - vendor/bin/phpunit --coverage-clover coverage.xml

after_success:
  - php vendor/bin/coveralls

Allow PHP 5.5/5.6 to fail due to exhausted memory
Allow PHP 5.5/5.6 to fail due to exhausted memory
