Sylius/.travis.yml
2019-03-29 11:20:04 +01:00

127 lines
3 KiB
YAML

language: php
dist: trusty
sudo: false
env:
global:
- APP_ENV=test_cached
- SYLIUS_CACHE_DIR=$HOME/.sylius-cache
- SYLIUS_BUILD_DIR=etc/build
addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client
matrix:
include:
-
php: 7.3
env:
- SYLIUS_SUITE="application"
- SYMFONY_VERSION="3.4.*"
services:
- memcached
-
if: type IN (cron, api) OR tag IS present
php: 7.3
env:
- SYLIUS_SUITE="application"
- SYMFONY_VERSION="4.2.*"
services:
- memcached
-
php: 7.3
env:
- SYLIUS_SUITE="docs packages"
- SYMFONY_VERSION="3.4.*"
services:
- docker
addons:
apt:
packages:
- parallel
-
if: type IN (cron, api) OR tag IS present
php: 7.3
env:
- SYLIUS_SUITE="packages"
- SYMFONY_VERSION="4.2.*"
addons:
apt:
packages:
- parallel
-
if: type IN (cron, api) OR tag IS present
php: 7.2
env:
- SYLIUS_SUITE="application"
- SYMFONY_VERSION="3.4.*"
services:
- memcached
-
php: 7.2
env:
- SYLIUS_SUITE="application"
- SYMFONY_VERSION="4.2.*"
services:
- memcached
-
if: type IN (cron, api) OR tag IS present
php: 7.2
env:
- SYLIUS_SUITE="packages"
- SYMFONY_VERSION="3.4.*"
addons:
apt:
packages:
- parallel
-
php: 7.2
env:
- SYLIUS_SUITE="packages"
- SYMFONY_VERSION="4.2.*"
addons:
apt:
packages:
- parallel
cache:
yarn: true
directories:
- ~/.composer/cache/files
- ~/.cache/pip
- node_modules
- $SYLIUS_CACHE_DIR
before_install:
- etc/travis/run-suite before_install "${SYLIUS_SUITE}"
install:
- etc/travis/run-suite install "${SYLIUS_SUITE}"
before_script:
- etc/travis/run-suite before_script "${SYLIUS_SUITE}"
script:
- etc/travis/run-suite script "${SYLIUS_SUITE}"
before_cache:
- etc/travis/run-suite before_cache "${SYLIUS_SUITE}"
after_success:
- etc/travis/run-suite after_success "${SYLIUS_SUITE}"
after_failure:
- etc/travis/run-suite after_failure "${SYLIUS_SUITE}"
after_script:
- etc/travis/run-suite after_script "${SYLIUS_SUITE}"
notifications:
email: false