aboutsummaryrefslogtreecommitdiffstats
path: root/travis/install-php-extensions.sh
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-01-23 01:39:39 +0100
committerAndreas Fischer <bantu@phpbb.com>2013-01-23 01:39:39 +0100
commitbd180b8e3867c0b66d7ce4edd96502244d9d71c1 (patch)
tree94077a3b17c801c13aba1a816ab64bcd280df86f /travis/install-php-extensions.sh
parentaa7350eba731496e11956b78d99d57aeaafaad58 (diff)
downloadforums-bd180b8e3867c0b66d7ce4edd96502244d9d71c1.tar
forums-bd180b8e3867c0b66d7ce4edd96502244d9d71c1.tar.gz
forums-bd180b8e3867c0b66d7ce4edd96502244d9d71c1.tar.bz2
forums-bd180b8e3867c0b66d7ce4edd96502244d9d71c1.tar.xz
forums-bd180b8e3867c0b66d7ce4edd96502244d9d71c1.zip
[ticket/11338] Travis CI: Install PHP extension for redis key-value store.
PHPBB3-11338
Diffstat (limited to 'travis/install-php-extensions.sh')
-rwxr-xr-xtravis/install-php-extensions.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/travis/install-php-extensions.sh b/travis/install-php-extensions.sh
new file mode 100755
index 0000000000..55955c2905
--- /dev/null
+++ b/travis/install-php-extensions.sh
@@ -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'