[pkg-php-pear] Running tests at build time, and installed via DEP-8 (was: phpunit comments)

David Prévot david at tilapin.org
Sun Feb 9 01:05:38 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

Le 04/02/2014 23:25, Prach Pongpanich a écrit :
> On Wed, Feb 5, 2014 at 5:32 AM, "David Prévot" <david at tilapin.org> wrote:
>>>> Le 20/01/2014 12:10, Prach Pongpanich a écrit :

>>>> […] implement the phpunit
>>>> tests (at build time and via DEP-8) in the package that could support
>>>> it, is there a place to start (documentation, example, etc.)?
>>
>>> https://wiki.debian.org/PHP/PHPUnit3.6
>>> http://thomas.goirand.fr/blog/?p=14
>>
>> Thanks, I’ll look at what is already done and will try to convert some of
>> the package I maintain if possible.
> 
> Great!, I hope we can do that like The Debian Ruby team.
>  https://wiki.debian.org/Teams/Ruby/Packaging/Tests

FYI, php-opencloud 1.9.2-1 (just uploaded to experimental) now runs its
test suite at build time [1] and can be tested once installed (à la
DEP-8) [2] (it seems to be the first DEP-8 compliant PHP package [3],
it’s also my first attempt to run a test suite at build time and DEP-8
compliance, so any comment is welcome).

> 1: http://anonscm.debian.org/gitweb/?p=pkg-php/php-opencloud.git;a=commitdiff;h=59f484271fd70b477c1211836092373a55168df3
> 2: http://anonscm.debian.org/gitweb/?p=pkg-php/php-opencloud.git;a=commitdiff;h=1879bf5df94d4aa9f87526b9088036560e61e675
> 3: http://ci.debian.net/#packages

Side note: I had to mimic the Composer autoload feature [4] (via
ClassLoader from Symfony), no idea if pkg-php-tools could be improved to
create an autoload file, nor if php-composer could help (maybe andrea
would know).

> 4: http://anonscm.debian.org/gitweb/?p=pkg-php/php-opencloud.git;a=blob;f=debian/patches/0002-Use-ClassLoader-from-Symfony-instead-of-autoload.patch;h=1e64ecef2b046d544cf171746acdfe635b14afb7;hb=HEAD

Regards

David


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCAAGBQJS9tRhAAoJEAWMHPlE9r08ht8H/34GXEt9CEaYRnw/Q3pYsPr5
beI5i/QaLDbpLXkWFTSIIxQX27GAsesF1aJ0MPz1aqxx09FIByfMAqrvSX8vYDu2
aez72J1LdiaOefn5KQHfIvoWSLBGQCU4N5XMU6iALOUshAC3us/7DPuK+rLNOnH+
Ed8Xv1V4nYdbn3l6O6kkUQo8Ymom5YL4ozpkkChPKkabUDhvMFKQreD5U/hyUlb2
2F2dg/yKE0klDNv5VdlY1ENLMDoWobr6DO5XzAVBv+3MQlbaE4r2HSLKJMWC3wEH
Vcdsz+U5qBsmHILZo29ihwPq6+UdL4k93cMYFJ+lcsXsnAEysNpk6nvWQSYUTb8=
=cy+7
-----END PGP SIGNATURE-----



More information about the pkg-php-pear mailing list