forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
96 lines (66 loc) · 2.5 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
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
- npm install
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
- gulp
# 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 --strict
- 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"