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

@ -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