forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (53 loc) · 1.9 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
language: php
env:
global:
- SYLIUS_CACHE_DIR=$HOME/.sylius-cache
- SYLIUS_BUILD_DIR=travis/build-output
cache:
directories:
- bin
- vendor
- $HOME/.composer/cache
- $SYLIUS_CACHE_DIR
sudo: false
matrix:
fast_finish: true
include:
- php: 5.6
env: TEST_SUITE=1
services: [mongodb]
- php: 5.6
env: TEST_SUITE=2
- php: 5.6
env: TEST_SUITE=javascript
sudo: required
- php: 7.0
env: TEST_SUITE=1
- php: 7.0
env: TEST_SUITE=2
- php: 5.5
env: TEST_SUITE=1
services: [mongodb]
- php: 5.5
env: TEST_SUITE=2
before_install:
- mkdir -p $SYLIUS_CACHE_DIR
- 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 self-update
- if [ $TRAVIS_PHP_VERSION != "7.0" ] && [ $TEST_SUITE = 1 ]; then travis/prepare/prepare-mongodb; fi
- composer install --prefer-source --no-interaction
- if [ $TEST_SUITE = "javascript" ]; then travis/prepare/prepare-javascript; fi
before_script:
- app/console doctrine:database:create --env=test
- app/console doctrine:schema:create --env=test
- app/console doctrine:phpcr:repository:init --env=test
- app/console cache:warmup --env=test
- if [ $TEST_SUITE = "javascript" ]; then app/console assets:install --env=test; fi
- if [ $TEST_SUITE = "javascript" ]; then app/console assetic:dump --env=test; fi
script:
- travis/run-tests $TEST_SUITE
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"