Re: Dealing with .gitattributes and export-ignore for test suites on GitHub

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Solution #2

Remi and I package many PHP libraries this way.  For example:



# php-aws-sdk3

Spec: https://src.fedoraproject.org/rpms/php-aws-sdk3/blob/master/f/php-aws-sdk3.spec#_65

Get source script: https://src.fedoraproject.org/rpms/php-aws-sdk3/blob/master/f/php-aws-sdk3-get-source.sh



# php-zendframework-zend-stdlib

Spec: https://src.fedoraproject.org/rpms/php-zendframework-zend-stdlib/blob/master/f/php-zendframework-zend-stdlib.spec#_30

Get source script: https://src.fedoraproject.org/rpms/php-zendframework-zend-stdlib/blob/master/f/makesrc.sh





On Sat, Sep 30, 2017 at 12:32 PM, Robert-André Mauchin <zebob.m@xxxxxxxxx> wrote:
On samedi 30 septembre 2017 18:09:23 CEST François Kooman wrote:
> Hi,
>
> I'm packaging a PHP library [1] that is hosted on GitHub and has a
> .gitattributes file that uses export-ignore to not make the test suite
> directory part of the archive. As I want to run the unit tests in %check
> during package build, this is a bit of a problem. I see two approaches:
>
> 1. ask upstream to remove test suite directory from .gitattributes
> (probably won't work);
> 2. git clone the source and make my own archive after throwing away
> .gitattributes
>
> Maybe there is a better way I don't know about yet :-)
>
> Thanks,
> François
>
> [1] https://github.com/paragonie/sodium_compat
> _______________________________________________
> packaging mailing list -- packaging@lists.fedoraproject.org
> To unsubscribe send an email to packaging-leave@lists.fedoraproject.org

Solution 2.

There's a bash script used by Nodejs packager to fetch tests that are rarely
provided in the app archive. You could probably adapt directly it to your
usecase. Don't forget to add the script as a Source in your SPEC.

I'm attaching it to this message.
_______________________________________________
packaging mailing list -- packaging@lists.fedoraproject.org
To unsubscribe send an email to packaging-leave@lists.fedoraproject.org


_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux