summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornashe <thomas@chauchefoin.fr>2017-07-17 00:08:44 +0200
committernashe <thomas@chauchefoin.fr>2017-07-17 00:08:44 +0200
commit1f4c2a34ec5dea8be7691c9ae23250058e7e38b3 (patch)
treee5445bd80635786f2592a7fb95524134dbdca682
parent3adbcf65b246336653204c26e24e7c641e006923 (diff)
downloadplanet-1f4c2a34ec5dea8be7691c9ae23250058e7e38b3.tar
planet-1f4c2a34ec5dea8be7691c9ae23250058e7e38b3.tar.gz
planet-1f4c2a34ec5dea8be7691c9ae23250058e7e38b3.tar.bz2
planet-1f4c2a34ec5dea8be7691c9ae23250058e7e38b3.tar.xz
planet-1f4c2a34ec5dea8be7691c9ae23250058e7e38b3.zip
Update .travis.yml
In Travis, xdebug is not enabled on non-stable versions of PHP.
-rw-r--r--.travis.yml6
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