diff options
-rw-r--r-- | .travis.yml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml index 161375a..da79a30 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,9 +21,9 @@ before_deploy: - tar czvf moonmoon-$TRAVIS_TAG.tgz --exclude ".git" * before_script: -- phpenv config-rm xdebug.ini -- bash -c "if [[ $TRAVIS_PHP_VERSION != hhvm ]]; then (php -S 127.0.0.1:8081 >& /dev/null &); fi" -- bash -c "if [[ $TRAVIS_PHP_VERSION = hhvm ]]; then (hhvm -m server -p 8081 >& /dev/null &); fi" +- if [[ "$TRAVIS_PHP_VERSION" =~ '^[0-9]' ]]; then phpenv config-rm xdebug.ini; fi +- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then (php -S 127.0.0.1:8081 >& /dev/null &); fi +- if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then (hhvm -m server -p 8081 >& /dev/null &); fi script: vendor/bin/phpunit |