mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
92 lines
2.5 KiB
YAML
92 lines
2.5 KiB
YAML
language: php
|
|
|
|
env:
|
|
global:
|
|
- SYLIUS_CACHE_DIR=$HOME/.sylius-cache
|
|
- SYLIUS_BUILD_DIR=etc/build
|
|
|
|
cache:
|
|
directories:
|
|
- ~/.composer/cache/files
|
|
- $SYLIUS_CACHE_DIR
|
|
|
|
sudo: false
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- google-chrome
|
|
packages:
|
|
- google-chrome-stable
|
|
- parallel
|
|
|
|
services:
|
|
- memcached
|
|
|
|
php:
|
|
- 7.0
|
|
- 5.6
|
|
- 5.5
|
|
|
|
before_install:
|
|
# For packages testing
|
|
- git branch master 2>/dev/null || true
|
|
|
|
- phpenv config-rm xdebug.ini || true
|
|
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
|
|
|
- mkdir -p $SYLIUS_CACHE_DIR
|
|
|
|
- etc/travis/prepare-memcached-extension
|
|
|
|
- composer self-update
|
|
|
|
install:
|
|
- phpenv config-add etc/travis/install-php.ini
|
|
|
|
- composer install --no-interaction --no-scripts --prefer-dist
|
|
- etc/bin/install-packages
|
|
|
|
- composer run-script travis-build --no-interaction
|
|
|
|
before_script:
|
|
- app/console doctrine:database:create --env=test_cached # Have to be run with debug = true, to omit generating proxies before setting up the database
|
|
|
|
- app/console cache:warmup --env=test_cached --no-debug
|
|
|
|
- app/console doctrine:schema:create --env=test_cached --no-debug
|
|
- app/console doctrine:phpcr:repository:init --env=test_cached --no-debug
|
|
|
|
- app/console assets:install --env=test_cached --no-debug
|
|
- app/console assetic:dump --env=test_cached --no-debug
|
|
|
|
# Debug informations, PHP version & PHP configuration
|
|
# Its needed to remove the line with secret variables, as it is listed in _SERVER variables
|
|
- php -v
|
|
- php -i | grep -v 'SYMFONY__'
|
|
|
|
script:
|
|
- composer validate
|
|
- etc/bin/validate-packages
|
|
|
|
- if [[ $TRAVIS_PHP_VERSION = 7.* ]]; then bin/kawaii gherkin:check --align=left features/; fi;
|
|
|
|
- php -d opcache.enable_cli=0 bin/phpspec run --no-interaction -f dot
|
|
- bin/phpunit
|
|
|
|
- etc/bin/test-packages
|
|
|
|
- etc/travis/prepare-javascript
|
|
- etc/travis/run-behat
|
|
|
|
before_cache:
|
|
- yes 'Y' | rm -fr vendor/symfony-cmf/create-bundle/Resources/public/vendor/*
|
|
|
|
after_failure:
|
|
- export IMGUR_API_KEY=4907fcd89e761c6b07eeb8292d5a9b2a
|
|
|
|
- rm -fr "$SYLIUS_BUILD_DIR/*(0).log"
|
|
- cp app/logs/test_cached.log "$SYLIUS_BUILD_DIR/symfony_app.log"
|
|
|
|
- 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"
|