mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-15 05:14:28 +02:00
[ticket/14236] Disable Opcache on Travis when running the tests
PHPBB3-14236
This commit is contained in:
parent
bdf69817be
commit
345e8ad822
@ -50,4 +50,4 @@ script:
|
||||
- sh -c "if [ '$SLOWTESTS' != '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml; fi"
|
||||
- sh -c "if [ '$SLOWTESTS' = '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --group slow; fi"
|
||||
- sh -c "if [ '$TRAVIS_PHP_VERSION' = '5.3.3' -a '$DB' = 'mysqli' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..FETCH_HEAD; fi"
|
||||
|
||||
- php -i | grep opcache
|
||||
|
@ -48,6 +48,9 @@ then
|
||||
echo 'Enabling APC PHP extension'
|
||||
register_php_extension 'apc' "$php_ini_file"
|
||||
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
||||
else
|
||||
echo 'Disabling Opcache'
|
||||
echo 'opcache.enable=0' >> "$php_ini_file"
|
||||
fi
|
||||
|
||||
# redis
|
||||
|
Loading…
x
Reference in New Issue
Block a user