From 9eabe60c77d46d427182ec9f431b0309f1789306 Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Mon, 4 Sep 2017 14:26:02 +0200 Subject: [PATCH] Fix TravisCI builds The before_install command to force use of phpunit 5.7 on PHP 7.x failed because the /home/travis/bin directory already existed. Added '-p' flag to mkdir command to avoid error. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b7a92ac06d..c22faed204 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,7 +10,7 @@ language: php before_install: # If PHP >= 7.0, force use of PHPunit 5.7 - - if php -r "exit( (int)! version_compare( '$TRAVIS_PHP_VERSION', '7.0', '>=' ) );"; then mkdir ~/bin && wget -O ~/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar && chmod +x ~/bin/phpunit; fi + - if php -r "exit( (int)! version_compare( '$TRAVIS_PHP_VERSION', '7.0', '>=' ) );"; then mkdir -p ~/bin && wget -O ~/bin/phpunit https://phar.phpunit.de/phpunit-5.7.phar && chmod +x ~/bin/phpunit; fi before_script: - ./scripts/travis_before_script.sh