Skip to content

Commit 1a79923

Browse files
committed
try using global phpunit
1 parent d9952bd commit 1a79923

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ matrix:
1111

1212
install:
1313
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
14+
- travis_retry composer global require phpunit/phpunit # cannot use phpunit.phar or require-dev, because this package is a phpunit dep
1415
- travis_retry wget https://phar.io/releases/phive.phar
15-
- travis_retry composer require --dev phpunit/phpunit # cannot trust phpunit.phar, because this package is itself in that phar..."
1616

1717
script:
18-
- ./vendor/bin/phpunit --no-coverage
18+
- /home/travis/.composer/vendor/bin/phpunit --no-coverage
1919

2020
jobs:
2121
include:
2222
- stage: coverage
2323
php: 7.1
2424
script:
25-
- ./vendor/bin/phpunit
25+
- /home/travis/.composer/vendor/bin/phpunit
2626
after_script:
2727
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
2828
- travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

0 commit comments

Comments
 (0)