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(a)lists.fedoraproject.org
To unsubscribe send an email to packaging-leave(a)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.