Skip to content

Commit

Permalink
Fix TravisCI builds
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dregad committed Sep 4, 2017
1 parent 5fd83b6 commit 9eabe60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -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
Expand Down

0 comments on commit 9eabe60

Please sign in to comment.