Skip to content

Commit 4e53524

Browse files
committed
Fixing Travis build
1 parent 0125310 commit 4e53524

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ php:
44
- 7.1
55
env:
66
global:
7-
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress --optimize-autoloader"
7+
# We need to prefer source to get PHPStan test directory. Otherwise, it is removed from ZIP
8+
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress --optimize-autoloader --prefer-source"
89
- TASK_TESTS=1
910
- TASK_TESTS_COVERAGE=0
1011
- TASK_CS=1
@@ -18,8 +19,9 @@ cache:
1819
before_install:
1920
- travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo
2021
install:
21-
- travis_retry composer install $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
22+
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
2223
- composer info -D | sort
24+
- mkdir tmp
2325
script:
2426
- vendor/bin/phpunit --verbose;
2527
after_success:

0 commit comments

Comments
 (0)