mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge PR #1203 branch 'bantu/ticket/11338' into develop
# By Andreas Fischer # Via Andreas Fischer * bantu/ticket/11338: [ticket/11338] Travis CI: Install PHP extension for redis key-value store.
This commit is contained in:
commit
85611150c4
2 changed files with 22 additions and 0 deletions
|
@ -17,6 +17,7 @@ before_script:
|
||||||
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres; fi"
|
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres; fi"
|
||||||
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database phpbb_tests;' -U postgres; fi"
|
- sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database phpbb_tests;' -U postgres; fi"
|
||||||
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
|
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS phpbb_tests;'; fi"
|
||||||
|
- travis/install-php-extensions.sh
|
||||||
- pyrus set auto_discover 1
|
- pyrus set auto_discover 1
|
||||||
- pyrus install --force phpunit/DbUnit
|
- pyrus install --force phpunit/DbUnit
|
||||||
- phpenv rehash
|
- phpenv rehash
|
||||||
|
|
21
travis/install-php-extensions.sh
Executable file
21
travis/install-php-extensions.sh
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# @copyright (c) 2013 phpBB Group
|
||||||
|
# @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||||
|
#
|
||||||
|
set -e
|
||||||
|
|
||||||
|
function add_ext_to_php_ini
|
||||||
|
{
|
||||||
|
echo "extension=$1.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
|
||||||
|
}
|
||||||
|
|
||||||
|
# redis
|
||||||
|
git clone git://github.com/nicolasff/phpredis.git
|
||||||
|
cd phpredis
|
||||||
|
phpize
|
||||||
|
./configure
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd ..
|
||||||
|
add_ext_to_php_ini 'redis'
|
Loading…
Add table
Reference in a new issue