17
17
18
18
matrix :
19
19
include :
20
+ # Use the newer stack for HHVM as HHVM does not support Precise anymore since a long time and so Precise has an outdated version
20
21
- php : hhvm
22
+ sudo : required
23
+ dist : trusty
24
+ group : edge
21
25
- php : 5.3
22
26
- php : 5.4
23
27
- php : 5.5
@@ -37,10 +41,10 @@ services: mongodb
37
41
before_install :
38
42
- PHP=$TRAVIS_PHP_VERSION
39
43
# Matrix lines for intermediate PHP versions are skipped for pull requests
40
- - if [[ ! $deps && ! $PHP = ${MIN_PHP%.*} && $PHP ! = hhvm && $TRAVIS_PULL_REQUEST != false ]]; then deps=skip; skip=1; fi
44
+ - if [[ ! $deps && ! $PHP = ${MIN_PHP%.*} && ! $PHP = hhvm* && $TRAVIS_PULL_REQUEST != false ]]; then deps=skip; skip=1; fi
41
45
# A sigchild-enabled-PHP is used to test the Process component on the lowest PHP matrix line
42
46
- if [[ ! $deps && $PHP = ${MIN_PHP%.*} && ! -d php-$MIN_PHP/sapi ]]; then wget http://museum.php.net/php5/php-$MIN_PHP.tar.bz2 -O - | tar -xj; (cd php-$MIN_PHP; ./configure --enable-sigchild --enable-pcntl; make -j2); fi
43
- - if [[ $PHP ! = hhvm ]]; then INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; else INI_FILE=/etc/hhvm/php.ini; fi
47
+ - if [[ ! $PHP = hhvm* ]]; then INI_FILE=~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini; else INI_FILE=/etc/hhvm/php.ini; fi
44
48
- if [[ ! $skip ]]; then echo memory_limit = -1 >> $INI_FILE; fi
45
49
- if [[ ! $skip ]]; then echo session.gc_probability = 0 >> $INI_FILE; fi
46
50
- if [[ ! $skip && $PHP = 5.* ]]; then echo extension = mongo.so >> $INI_FILE; fi
@@ -49,8 +53,8 @@ before_install:
49
53
- if [[ ! $skip && $PHP = 7.* ]]; then (echo yes | pecl install -f apcu-5.1.2 && echo apc.enable_cli = 1 >> $INI_FILE); fi
50
54
- if [[ ! $deps && $PHP = 5.* ]]; then (cd src/Symfony/Component/Debug/Resources/ext && phpize && ./configure && make && echo extension = $(pwd)/modules/symfony_debug.so >> $INI_FILE); fi
51
55
- if [[ ! $skip && $PHP = 5.* ]]; then pecl install -f memcached-2.1.0; fi
52
- - if [[ ! $skip && $PHP ! = hhvm ]]; then echo extension = ldap.so >> $INI_FILE; fi
53
- - if [[ ! $skip && $PHP ! = hhvm ]]; then phpenv config-rm xdebug.ini; fi
56
+ - if [[ ! $skip && ! $PHP = hhvm* ]]; then echo extension = ldap.so >> $INI_FILE; fi
57
+ - if [[ ! $skip && ! $PHP = hhvm* ]]; then phpenv config-rm xdebug.ini; fi
54
58
- if [[ ! $skip ]]; then composer self-update --stable; fi
55
59
- if [[ ! $skip ]]; then cp .composer/* ~/.composer/; fi
56
60
- if [[ ! $skip ]]; then ./phpunit install; fi
@@ -68,7 +72,7 @@ install:
68
72
- export COMPOSER_ROOT_VERSION=$SYMFONY_VERSION.x-dev
69
73
- if [[ ! $deps ]]; then composer update; else export SYMFONY_DEPRECATIONS_HELPER=weak; fi
70
74
- if [[ $TRAVIS_BRANCH = master ]]; then export SYMFONY_PHPUNIT_OVERLOAD=1; fi
71
- - if [[ $PHP ! = hhvm ]]; then php -i; else hhvm --php -r 'print_r($_SERVER);print_r(ini_get_all());'; fi
75
+ - if [[ ! $PHP = hhvm* ]]; then php -i; else hhvm --php -r 'print_r($_SERVER);print_r(ini_get_all());'; fi
72
76
73
77
script :
74
78
- if [[ $skip ]]; then echo -e "\\n\\e[1;34mIntermediate PHP version $PHP is skipped for pull requests.\\e[0m"; fi
0 commit comments