forked from Sylius/Sylius-Standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
62 lines (46 loc) · 2.34 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
language: php
env:
global:
- SYLIUS_CACHE_DIR=$HOME/.sylius-cache
- SYLIUS_BUILD_DIR=etc/build
sudo: false
php:
- 7.0
- 5.6
services:
- memcached
cache:
directories:
- vendor
- bin
- node_modules
- $SYLIUS_CACHE_DIR
before_install:
- phpenv config-rm xdebug.ini
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- composer config -g github-oauth.github.com f89d08114c80d1a1b019b09ce60a38f75a5c9480
- composer self-update
- echo "extension = memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install:
- composer install --no-interaction --prefer-dist
- npm install
before_script:
- app/console doctrine:database:create --env=test_cached -vvv # 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 -vvv
- app/console doctrine:schema:create --env=test_cached --no-debug -vvv
- app/console doctrine:phpcr:repository:init --env=test_cached --no-debug -vvv
- app/console assets:install --env=test_cached --no-debug -vvv
- gulp
- /sbin/start-stop-daemon --start --quiet --pidfile /tmp/xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1680x1050x16
- export DISPLAY=:99
- curl http://chromedriver.storage.googleapis.com/2.12/chromedriver_linux64.zip > chromedriver.zip && unzip chromedriver.zip
- cp .travis/behat.yml ./behat.yml
- bin/selenium-server-standalone -Dwebdriver.chrome.driver=chromedriver > $SYLIUS_BUILD_DIR/selenium.log 2>&1 &
- app/console server:run 127.0.0.1:8080 --env=test_cached --router=app/config/router_test_cached.php --no-debug > $SYLIUS_BUILD_DIR/webserver.log 2>&1 &
script:
- rm -f vendor/sylius/sylius/features/product/managing_products/select_taxons_for_product.feature
- php -d opcache.enable_cli=0 bin/phpspec run --no-interaction -f dot
- bin/behat --strict -f progress -p cached || bin/behat --strict -f progress -p cached --rerun
after_failure:
- vendor/lakion/mink-debug-extension/travis/tools/upload-textfiles "${SYLIUS_BUILD_DIR}/*.log"
- IMGUR_API_KEY=4907fcd89e761c6b07eeb8292d5a9b2a vendor/lakion/mink-debug-extension/travis/tools/upload-screenshots "${SYLIUS_BUILD_DIR}/*.png"