try using global phpunit

This commit is contained in:
Chuck Burgess
2018-01-30 12:48:00 -06:00
parent d9952bd114
commit 1a799237e1
+3 -3
View File
@@ -11,18 +11,18 @@ matrix:
install: install:
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader - travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
- travis_retry composer global require phpunit/phpunit # cannot use phpunit.phar or require-dev, because this package is a phpunit dep
- travis_retry wget https://phar.io/releases/phive.phar - travis_retry wget https://phar.io/releases/phive.phar
- travis_retry composer require --dev phpunit/phpunit # cannot trust phpunit.phar, because this package is itself in that phar..."
script: script:
- ./vendor/bin/phpunit --no-coverage - /home/travis/.composer/vendor/bin/phpunit --no-coverage
jobs: jobs:
include: include:
- stage: coverage - stage: coverage
php: 7.1 php: 7.1
script: script:
- ./vendor/bin/phpunit - /home/travis/.composer/vendor/bin/phpunit
after_script: after_script:
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose - travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
- travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml - travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml