File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,19 +9,21 @@ sudo: false
99
1010matrix :
1111 fast_finish : true
12+ allow_failures :
13+ - php : hhvm
1214
1315before_install :
1416 - if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]]; then phpenv config-rm xdebug.ini; fi;
1517 - pip install --user codecov
1618
1719before_script :
18- - mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d
19- - echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
20- - pecl config-set preferred_state beta; printf "yes\n" | pecl install apcu
20+ # Install apcu
21+ - if [ $TRAVIS_PHP_VERSION == '7.0' ]; then export APCU_VERSION=5.1.0; else export APCU_VERSION=4.0.8; fi
22+ - if [ $TRAVIS_PHP_VERSION != 'hhvm' ]; then sh -c "yes '' | pecl install apcu-$APCU_VERSION"; fi
23+ - if [ $TRAVIS_PHP_VERSION != 'hhvm' ]; then phpenv config-add ./tests/travis/php.ini; fi
24+
2125 - travis_retry composer self-update
2226 - travis_retry composer install --prefer-source --no-interaction
23- # must be set after composer to avoid issue with autoloading
24- - echo "apc.enable_cli=On" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
2527
2628script :
2729 - php -dzend_extension=xdebug.so vendor/bin/phpunit --coverage-clover=coverage.xml
Original file line number Diff line number Diff line change 1+ apc.enabled =1
2+ apc.enable_cli =1
You can’t perform that action at this time.
0 commit comments