fix travis phpunit error

This commit is contained in:
Jacson Passold 2018-06-29 01:39:32 -03:00
parent eafb289916
commit fe20f23ba4
1 changed files with 7 additions and 1 deletions

View File

@ -35,7 +35,13 @@ install:
- sudo mkdir /tmp/wordpress/wordpress-test/wp-content/uploads
- sudo wget https://phar.phpunit.de/phpunit-6.5.7.phar -P /tmp
- sudo chmod +x /tmp/phpunit-6.5.7.phar
- sudo mv /tmp/phpunit-6.5.7.phar /usr/local/bin/phpunit
- sudo mv /tmp/phpunit-6.5.7.phar /usr/local/bin/phpunit-6
- sudo wget https://phar.phpunit.de/phpunit-5.phar -P /tmp
- sudo chmod +x /tmp/phpunit-5.phar
- sudo mv /tmp/phpunit-5.phar /usr/local/bin/phpunit-5
- echo '#!/bin/bash' |sudo tee /usr/local/bin/phpunit > /dev/null
- echo 'if ( php -v|grep -q --only-matching --perl-regexp "5\.\\d+\.\\d+" );then /usr/local/bin/phpunit-5 $@;else /usr/local/bin/phpunit-6 $@;fi' |sudo tee -a /usr/local/bin/phpunit > /dev/null
- sudo chmod +x /usr/local/bin/phpunit
script: /usr/local/bin/phpunit # phpunit
before_deploy:
- echo "Seção executada antes do deploy!"