mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-08 00:47:55 +08:00
added apc,redis and memcache(d) to travis
This commit is contained in:
@ -8,11 +8,16 @@ php:
|
|||||||
env:
|
env:
|
||||||
- CUBRID_VERSION=9.1.0
|
- CUBRID_VERSION=9.1.0
|
||||||
|
|
||||||
|
services:
|
||||||
|
- redis-server
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- composer self-update && composer --version
|
- composer self-update && composer --version
|
||||||
- composer require satooshi/php-coveralls 0.6.*
|
- composer require satooshi/php-coveralls 0.6.*
|
||||||
- mysql -e 'CREATE DATABASE yiitest;';
|
- mysql -e 'CREATE DATABASE yiitest;';
|
||||||
- psql -U postgres -c 'CREATE DATABASE yiitest;';
|
- psql -U postgres -c 'CREATE DATABASE yiitest;';
|
||||||
|
- tests/unit/data/travis/apc-setup.sh
|
||||||
|
- tests/unit/data/travis/memcache-setup.sh
|
||||||
- tests/unit/data/travis/cubrid-setup.sh
|
- tests/unit/data/travis/cubrid-setup.sh
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
|||||||
@ -1,16 +1,18 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
install_memcache() {
|
install_memcache() {
|
||||||
if [ "$(expr "$TRAVIS_PHP_VERSION" ">=" "5.5")" -eq 1 ]; then
|
# if [ "$(expr "$TRAVIS_PHP_VERSION" ">=" "5.5")" -eq 1 ]; then
|
||||||
MEMCACHE_VERSION="2.2.7"
|
# MEMCACHE_VERSION="2.2.7"
|
||||||
wget "http://pecl.php.net/get/memcache-$MEMCACHE_VERSION.tgz" &&
|
# wget "http://pecl.php.net/get/memcache-$MEMCACHE_VERSION.tgz" &&
|
||||||
tar -zxf "memcache-$MEMCACHE_VERSION.tgz" &&
|
# tar -zxf "memcache-$MEMCACHE_VERSION.tgz" &&
|
||||||
sh -c "cd memcache-$MEMCACHE_VERSION && phpize && ./configure --enable-memcache && make && sudo make install"
|
# sh -c "cd memcache-$MEMCACHE_VERSION && phpize && ./configure --enable-memcache && make && sudo make install"
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||||
|
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
install_memcache > ~/memcache.log || ( echo "=== MEMCACHE BUILD FAILED ==="; cat ~/memcache.log )
|
install_memcache > ~/memcache.log || ( echo "=== MEMCACHE BUILD FAILED ==="; cat ~/memcache.log )
|
||||||
|
|
||||||
|
echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
|
||||||
|
|||||||
Reference in New Issue
Block a user