Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cc1cb85

Browse filesBrowse 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
Copy full SHA for cc1cb85

File tree

Expand file treeCollapse file tree

1 file changed

+12
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+12
-1
lines changed

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+12-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.