From 1f4c2a34ec5dea8be7691c9ae23250058e7e38b3 Mon Sep 17 00:00:00 2001 From: nashe Date: Mon, 17 Jul 2017 00:08:44 +0200 Subject: Update .travis.yml In Travis, xdebug is not enabled on non-stable versions of PHP. --- .travis.yml | 6 +++--- 1 file 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 -- cgit v1.2.1