2014-01-22 02:38:41 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# This file is part of the phpseclib project.
|
|
|
|
#
|
|
|
|
# (c) Andreas Fischer <bantu@phpbb.com>
|
|
|
|
#
|
|
|
|
# For the full copyright and license information, please view the LICENSE
|
|
|
|
# file that was distributed with this source code.
|
|
|
|
#
|
|
|
|
set -e
|
|
|
|
|
|
|
|
function install_php_extension
|
|
|
|
{
|
|
|
|
cd "$1"
|
|
|
|
phpize
|
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
cd ..
|
|
|
|
echo "extension=$1.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`
|
|
|
|
}
|
|
|
|
|
2014-06-19 13:35:41 +00:00
|
|
|
if [ "$TRAVIS_PHP_VERSION" != "5.6" ]
|
|
|
|
then
|
|
|
|
# runkit
|
|
|
|
git clone git://github.com/zenovich/runkit.git
|
|
|
|
install_php_extension 'runkit'
|
|
|
|
fi
|