mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
With the introduction of AppVeyor continuous integration and improved setup of Travis, the root directory may start to become disorganised or cluttered, especially if there are more tools to be integrated in the future. Moving files for AppVeyor, Travis and Vagrant into an "etc" directory will help estabish a new location for similar files.
72 lines
2.1 KiB
YAML
72 lines
2.1 KiB
YAML
language: php
|
|
|
|
env:
|
|
global:
|
|
- SYLIUS_CACHE_DIR=$HOME/.sylius-cache
|
|
- SYLIUS_BUILD_DIR=etc/travis/build-output
|
|
|
|
cache:
|
|
directories:
|
|
- bin
|
|
- vendor
|
|
- $SYLIUS_CACHE_DIR
|
|
|
|
sudo: false
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- google-chrome
|
|
packages:
|
|
- google-chrome-stable
|
|
|
|
matrix:
|
|
include:
|
|
- php: 5.6
|
|
services: [memcached, mongodb]
|
|
- php: 7.0
|
|
services: [memcached]
|
|
- php: 5.5
|
|
services: [memcached, mongodb]
|
|
|
|
before_install:
|
|
- mkdir -p $SYLIUS_CACHE_DIR
|
|
|
|
- composer self-update
|
|
|
|
- if [ $TRAVIS_PHP_VERSION == "7.0" ]; then etc/travis/prepare/prepare-php7-memcached; fi
|
|
- if [ $TRAVIS_PHP_VERSION != "7.0" ]; then etc/travis/prepare/prepare-mongodb; fi
|
|
|
|
- cat etc/travis/prepare/opcache.ini >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
|
|
|
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
|
- echo "" > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
|
|
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
|
|
|
- composer install --no-interaction --prefer-dist --no-scripts
|
|
- composer run-script travis-build --no-interaction
|
|
|
|
before_script:
|
|
- app/console doctrine:database:create --env=test_cached
|
|
|
|
- app/console cache:warmup --env=test_cached --no-debug
|
|
|
|
- app/console doctrine:schema:create --env=test_cached
|
|
- app/console doctrine:phpcr:repository:init --env=test_cached
|
|
|
|
- app/console assets:install --env=test_cached --no-debug
|
|
- app/console assetic:dump --env=test_cached --no-debug
|
|
|
|
- php -v
|
|
- php -i
|
|
|
|
script:
|
|
- etc/travis/run-tests default
|
|
|
|
before_cache:
|
|
- yes 'Y' | rm -fr vendor/symfony-cmf/create-bundle/Resources/public/vendor/*
|
|
|
|
after_failure:
|
|
- export IMGUR_API_KEY=4907fcd89e761c6b07eeb8292d5a9b2a
|
|
- vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles "$SYLIUS_BUILD_DIR/*.log"
|
|
- vendor/lakion/mink-debug-extension/travis/tools/upload-screenshots "$SYLIUS_BUILD_DIR/*.png"
|