add phpwebserver to travis
This commit is contained in:
parent
2b12264304
commit
4fa7fd759a
|
@ -8,3 +8,4 @@ php:
|
|||
before_script:
|
||||
- curl -s http://getcomposer.org/installer | php
|
||||
- php composer.phar install --dev --prefer-source
|
||||
- ./src/BeSimple/SoapClient/Tests/bin/phpwebserver.sh
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
PHPWEBSERVEROK="$( php -r "if (version_compare(phpversion(), '5.4', '<')) { echo 'nok'; } else { echo 'ok'; }" )"
|
||||
|
||||
if [ "$PHPWEBSERVEROK" != "ok" ]; then
|
||||
echo "No PHP webserver available before version 5.4..."
|
||||
exit
|
||||
fi
|
||||
|
||||
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd $DIR
|
||||
|
||||
|
|
Loading…
Reference in New Issue