Move runkit installation to external script

This makes easier to read .travis.yml and also allows us to measure time
it takes.

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2014-12-04 14:05:59 +01:00
parent f07c5a4a0f
commit 2489caebd7
2 changed files with 16 additions and 19 deletions

View File

@ -29,26 +29,8 @@ before_script:
- export PATH=~/.composer/vendor/bin/:$PATH
- mysql -uroot -e "SET PASSWORD = PASSWORD('$TESTSUITE_PASSWORD')" ;
- composer install --dev --no-interaction
- if [ -z "$LINT" - a$TRAVIS_PHP_VERSION != "hhvm" ] ; then ./test/install-runkit ; fi
- set -e ; if [ -z "$LINT" ] ; then
if [ $TRAVIS_PHP_VERSION != "hhvm" ] ; then
git clone --depth=1 git://github.com/zenovich/runkit.git ;
cd runkit ;
if [ $TRAVIS_PHP_VERSION = "5.6" ] ; then
wget https://github.com/zenovich/runkit/pull/71.diff ;
patch -p1 < 71.diff ;
fi ;
phpize ;
./configure ;
make ;
make install ;
cd .. ;
phpenv config-add test/travis.php.ini ;
fi ;
if [ ! -z "$SELENIUM" ] ; then
php --server 127.0.0.1:8000 &

15
test/install-runkit Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
git clone --depth=1 git://github.com/zenovich/runkit.git
cd runkit
if [ $TRAVIS_PHP_VERSION = "5.6" ] ; then
wget https://github.com/zenovich/runkit/pull/71.diff
patch -p1 < 71.diff
fi
phpize
./configure
make
make install
cd ..
phpenv config-add test/travis.php.ini