language: php
sudo: false

services:
  - mysql

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

# PHP 5.6 and 7.0 still because Symfony 3.4 supports them
matrix:
  include:
    - php: 5.6
    - php: 7.0
    - php: 7.1

before-install:
  - composer self-update

install:
  - composer install
  - cp app/config/parameters.yml.dist app/config/parameters.yml
  - php bin/console doctrine:database:create --env=test
  - php bin/console doctrine:schema:create --env=test

# Run script
script:
  - phpunit

language: php
sudo: false

services:
  - mysql

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

matrix:
  include:
    - php: 7.1

before-install:
  - composer self-update

install:
  - composer install
  - cp app/config/parameters.yml.dist app/config/parameters.yml
  - php bin/console doctrine:database:create --env=test
  - php bin/console doctrine:schema:create --env=test

# Run script
script:
  - phpunit

Remove php 5.6 and 7.0 as they will be removed in November anyway.
Remove php 5.6 and 7.0 as they will be removed in November anyway.
