language: php

dist: trusty

sudo: false

php:
    - '7.2'
    - '7.3'

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

env:
    global:
        - APP_ENV=test

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

install:
    - composer install --no-interaction --prefer-dist

before_script:
    - (cd tests/Application && bin/console doctrine:database:create -vvv)
    - (cd tests/Application && bin/console doctrine:schema:create -vvv)

script:
    - composer validate --strict
    - composer security
    - composer check-style
    - composer analyse
    - composer test

language: php

dist: trusty

sudo: false

php:
    - '7.2'
    - '7.3'

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

env:
    global:
        - APP_ENV=test

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

install:
    - composer install --no-interaction --prefer-dist
# Temporary 'fix' to be compatible with Sylius Plugin Skeleton v1.3
    - composer require sylius/sylius:~1.3.0 --no-interaction --prefer-dist

before_script:
    - (cd tests/Application && bin/console doctrine:database:create -vvv)
    - (cd tests/Application && bin/console doctrine:schema:create -vvv)

script:
    - composer validate --strict
    - composer security
    - composer check-style
    - composer analyse
    - composer test

Fix build: use Sylius version similar to Skeleton framework used
Fix build: use Sylius version similar to Skeleton framework used
