8000 minor #38826 Display php info for extra versions in travis (jderusse) · symfony/symfony@cc1cb85 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit cc1cb85

Browse files
minor #38826 Display php info for extra versions in travis (jderusse)
This PR was merged into the 3.4 branch. Discussion ---------- Display php info for extra versions in travis | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Display the PHP info of all tested versions when the test-suite use several versions of PHP Helps to troubleshoot #38818 (comment) Commits ------- 25a7333 Display php info for extra versions in travis
2 parents dc48444 + 25a7333 commit cc1cb85

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.travis.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ before_install:
173173
for PHP in $TRAVIS_PHP_VERSION $php_extra; do
174174
export PHP=$PHP
175175
phpenv global $PHP
176+
composer self-update
177+
composer self-update --2
176178
INI=~/.phpenv/versions/$PHP/etc/conf.d/travis.ini
177179
if [[ $PHP = 5.* ]]; then
178180
tfold ext.apcu tpecl apcu-4.0.11 apcu.so $INI
@@ -277,7 +279,16 @@ install:
277279
278280
- |
279281
# phpinfo
280-
php -i
282+
phpinfo() {
283+
phpenv global $1
284+
php -r 'foreach (get_loaded_extensions() as $extension) echo $extension . " " . phpversion($extension) . PHP_EOL;'
285+
php -i
286+
}
287+
export -f phpinfo
288+
289+
for PHP in $TRAVIS_PHP_VERSION $php_extra; do
290+
tfold $PHP phpinfo $PHP
291+
done
281292
282293
- |
283294
run_tests () {

0 commit comments

Comments
 (0)
0