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:
parent
f07c5a4a0f
commit
2489caebd7
20
.travis.yml
20
.travis.yml
@ -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
15
test/install-runkit
Executable 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
|
||||
Loading…
Reference in New Issue
Block a user