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

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

 



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@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx

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.

Attachment: dl-tests.sh
Description: application/shellscript

_______________________________________________
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