-
Notifications
You must be signed in to change notification settings - Fork 140
/
.travis.yml
50 lines (40 loc) · 1.46 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
language: php
php:
- 7.1
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: 7.1
env: TRANSPORT=jackrabbit COMPOSER_INSTALL=1
- php: 7.1
env: TRANSPORT=doctrine_dbal COMPOSER_INSTALL=1
env:
global:
- SYMFONY_PHPUNIT_DIR=.phpunit SYMFONY_PHPUNIT_REMOVE="symfony/yaml" SYMFONY_PHPUNIT_VERSION=5.7
- SYMFONY_DEPRECATIONS_HELPER=weak
matrix:
- TRANSPORT=jackrabbit
- TRANSPORT=doctrine_dbal
before_install:
- if ! [ -z "$STABILITY" ]; then composer config minimum-stability ${STABILITY}; composer config prefer-stable true; fi;
- if [ "$TRAVIS_PHP_VERSION" == "7.0" ]; then echo "zend.enable_gc = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; fi
- phpenv config-rm xdebug.ini || true
- composer self-update
install:
- phpenv config-add travis.php.ini
- php -ini | grep memory_limit
- if [ "$COMPOSER_INSTALL" != "1" ]; then composer update --no-scripts --prefer-dist; else composer install --no-scripts --prefer-dist; fi
before_script:
- cp app/config/phpcr_${TRANSPORT}.yml.dist app/config/phpcr.yml
- composer run-script post-update-cmd
- ./tests/travis_${TRANSPORT}.sh
- bin/console doctrine:phpcr:workspace:create sandbox_test -e=test
- bin/console doctrine:phpcr:repository:init -e=test
script: php vendor/bin/simple-phpunit --debug
notifications:
irc: "irc.freenode.org#symfony-cmf"
email: "[email protected]"