add phpwebserver to travis

This commit is contained in:
Andreas Schamberger 2013-08-24 08:24:31 +02:00
parent 2b12264304
commit 4fa7fd759a
2 changed files with 8 additions and 0 deletions

View File

@ -8,3 +8,4 @@ php:
before_script: before_script:
- curl -s http://getcomposer.org/installer | php - curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --prefer-source - php composer.phar install --dev --prefer-source
- ./src/BeSimple/SoapClient/Tests/bin/phpwebserver.sh

View File

@ -1,5 +1,12 @@
#!/bin/bash #!/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 )" DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR cd $DIR