调整测试用文件结构

This commit is contained in:
7IN0SAN9
2016-01-25 17:37:11 +08:00
parent fd02db5f21
commit 6976a1a2d6
4 changed files with 9 additions and 5 deletions

View File

@@ -1 +0,0 @@
apc.enable_cli=1

3
tests/conf/apcu.ini Normal file
View File

@@ -0,0 +1,3 @@
extension=apcu.so
apc.enable_cli=1

View File

@@ -1,2 +1,4 @@
extension=apcu.so
extension=apc.so
apc.enable_cli=1

View File

@@ -3,17 +3,17 @@
if [ $(phpenv version-name) != "hhvm" ]; then
pecl channel-update pecl.php.net
pear config-set php_ini ''
pecl config-set php_ini ''
if [ $(phpenv version-name) = "7.0" ]; then
pear config-set php_ini ''
pecl config-set php_ini ''
echo "yes\nno\n" | pecl install apcu-5.1.2
pecl install apcu_bc-beta
phpenv config-add thinkphp/tests/conf/apcu_bc.ini
else
echo "yes\nno\n" | pecl install apcu-4.0.10
phpenv config-add thinkphp/tests/conf/apcu.ini
fi
phpenv config-add thinkphp/tests/conf/apc.ini
fi
composer install --no-interaction --ignore-platform-reqs