Last modified: 2012-12-19 14:03:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44724, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42724 - Update PHPUnit from 3.6.x to 3.7.10
Update PHPUnit from 3.6.x to 3.7.10
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-05 13:36 UTC by Antoine "hashar" Musso (WMF)
Modified: 2012-12-19 14:03 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2012-12-05 13:36:21 UTC
continuous integration box is still running PHPUnit 3.6.x. We would like to upgrade to the latest stable version which is 3.7.10.

Changelog: https://github.com/sebastianbergmann/phpunit/blob/3.7.10/ChangeLog.md

3.7.10 requires php version 5.3.3, we have 5.3.10 from Ubuntu Precise.


The upgrade path would be:

 pear install pear.phpunit.de/phpunit-3.7.10

Dependencies are handled by pear.


I do not expect any trouble since most of us are already running 3.7.x on our local machines.
Comment 1 Antoine "hashar" Musso (WMF) 2012-12-05 13:43:30 UTC
Previous upgrade was bug 33714 / https://rt.wikimedia.org/Ticket/Display.html?id=2737
Comment 2 Antoine "hashar" Musso (WMF) 2012-12-19 14:01:16 UTC
Added symfony pear channel to get the YAML component:

# pear channel-discover pear.symfony.com
Adding Channel "pear.symfony.com" succeeded
Discovery of channel "pear.symfony.com" succeeded
#

Then upgraded PHPUnit

# pear install --alldeps phpunit/PHPUnit
phpunit/PHP_CodeCoverage can optionally use PHP extension "xdebug" (version >= 2.0.5)
downloading PHPUnit-3.7.10.tgz ...
Starting to download PHPUnit-3.7.10.tgz (117,079 bytes)
.........................done: 117,079 bytes
downloading File_Iterator-1.3.3.tgz ...
Starting to download File_Iterator-1.3.3.tgz (5,152 bytes)
...done: 5,152 bytes
downloading Text_Template-1.1.4.tgz ...
Starting to download Text_Template-1.1.4.tgz (3,701 bytes)
...done: 3,701 bytes
downloading PHP_CodeCoverage-1.2.7.tgz ...
Starting to download PHP_CodeCoverage-1.2.7.tgz (157,806 bytes)
...done: 157,806 bytes
downloading PHP_Timer-1.0.4.tgz ...
Starting to download PHP_Timer-1.0.4.tgz (3,694 bytes)
...done: 3,694 bytes
downloading PHPUnit_MockObject-1.2.2.tgz ...
Starting to download PHPUnit_MockObject-1.2.2.tgz (20,347 bytes)
...done: 20,347 bytes
downloading Yaml-2.1.4.tgz ...
Starting to download Yaml-2.1.4.tgz (38,574 bytes)
...done: 38,574 bytes
downloading PHP_Invoker-1.1.2.tgz ...
Starting to download PHP_Invoker-1.1.2.tgz (3,705 bytes)
...done: 3,705 bytes
downloading PHP_TokenStream-1.1.5.tgz ...
Starting to download PHP_TokenStream-1.1.5.tgz (9,859 bytes)
...done: 9,859 bytes
install ok: channel://pear.phpunit.de/File_Iterator-1.3.3
install ok: channel://pear.phpunit.de/Text_Template-1.1.4
install ok: channel://pear.phpunit.de/PHP_Timer-1.0.4
install ok: channel://pear.symfony.com/Yaml-2.1.4
install ok: channel://pear.phpunit.de/PHP_TokenStream-1.1.5
install ok: channel://pear.phpunit.de/PHP_CodeCoverage-1.2.7
install ok: channel://pear.phpunit.de/PHPUnit_MockObject-1.2.2
install ok: channel://pear.phpunit.de/PHP_Invoker-1.1.2
install ok: channel://pear.phpunit.de/PHPUnit-3.7.10
root@gallium:~# phpunit --version
PHPUnit 3.7.10 by Sebastian Bergmann.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links