Skip to content

Commit 418bedf

Browse files
committed
can't install vendor phpunit due to reflection-docblock deps
1 parent 21ef967 commit 418bedf

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,21 @@ matrix:
1111

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

1617
script:
17-
- ./vendor/bin/phpunit --no-coverage
18+
- /home/travis/.composer/vendor/bin/phpunit --no-coverage
1819

1920
jobs:
2021
include:
2122
- stage: coverage
2223
php: 7.1
2324
script:
24-
- ./vendor/bin/phpunit
25+
- /home/travis/.composer/vendor/bin/phpunit
2526
after_script:
2627
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
27-
- travis_retry wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
28+
- travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
2829

2930
- stage: lint
3031
php: 7.1

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ version: '{build}.{branch}'
88
skip_tags: true
99
branches:
1010
only:
11-
- develop
1211
- master
1312

1413
environment:
@@ -49,7 +48,9 @@ install:
4948
- IF NOT EXIST php-installed.txt type nul >> php-installed.txt
5049
- cd c:\reflection
5150
- composer install --no-interaction --prefer-dist --no-progress
51+
- composer global require phpunit/phpunit
52+
- composer global config bin-dir --absolute
5253

5354
test_script:
5455
- cd c:\reflection
55-
- vendor/bin/phpunit --no-coverage
56+
- c:\Users\appveyor\AppData\Roaming\Composer\vendor\bin\phpunit --no-coverage

0 commit comments

Comments
 (0)