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

Re: [jfw] /Tests in Composer-package



Ah ok. That was the piece of the puzzle I was missing.

Thanks.

Regards,
Andrew Eddie


On 21 March 2014 19:11, Herman Peeren <> wrote:
> Sorry, was too quick: the archive exclude attribute doesn't work for
> packages that are downloaded via Packagist from Github. Because the zip
> (archive) that is downloaded is made by Git. The files and directories to be
> excluded are therefore listed in .gitattributes with the export-ignore
> command.
>
> In the Joomla-Framework packages we have a .gitignore. containing:
>
> .gitattributes export-ignore
> .gitignore export-ignore
> .travis.yml export-ignore
>
>
> We should probably just put the files and directories in it we don't want to
> downloadwith composer.
>
> For Dopctrine2 ORM
> https://github.com/doctrine/doctrine2/blob/master/.gitattributes has this
> content:
>
> /tests export-ignore
> /tools export-ignore
> .gitattributes export-ignore
> .gitignore export-ignore
> .gitmodules export-ignore
> .travis.yml export-ignore
> build.properties export-ignore
> build.properties.dev export-ignore
> build.xml export-ignore
> CONTRIBUTING.md export-ignore
> phpunit.xml.dist export-ignore
> run-all.sh export-ignore
>
>
>
>
>
>
>
> On Friday, 21 March 2014 08:35:28 UTC+1, Herman Peeren wrote:
>>
>> For the Joomla-Framework packages it would probably be something like
>> "archive": {
>>         "exclude": ["/Tests", "/phpunit.xml.dist", "/.travis.yml"]
>>     }
>>
>>
>> On Friday, 21 March 2014 08:01:32 UTC+1, Herman Peeren wrote:
>>>
>>> Yes, the archive exclude attribute, that is it. Didn't know it either.
>>>
>>> In https://github.com/doctrine/doctrine2/blob/master/composer.json
>>> you'll see the last line:
>>>  "archive": {
>>>         "exclude": ["!vendor", "tests", "*phpunit.xml", ".travis.yml",
>>> "build.xml", "build.properties", "composer.phar", "vendor/satooshi",
>>> "lib/vendor", "*.swp", "*coveralls.yml"]
>>>     }
>>>
>>>
>>> On Friday, 21 March 2014 05:14:01 UTC+1, Andrew Eddie wrote:
>>>>
>>>> On 21 March 2014 11:56, Andrew Eddie <> wrote:
>>>> > Yes it would and I didn't know about the archive exclude attribute:
>>>> >
>>>> > https://getcomposer.org/doc/04-schema.md#archive
>>>>
>>>> Actually I'm not sure that works the way I think it does. Herman,
>>>> maybe you can reach out to the Doctrine people to see how they do it.
>>>>
>>>> Thanks in advance.
>>>>
>>>> Regards,
>>>> Andrew Eddie
>
> --
> Framework source code: https://github.com/joomla/joomla-framework
> Visit http://developer.joomla.org for more information about developing with
> Joomla!
> ---
> You received this message because you are subscribed to the Google Groups
> "Joomla! Framework Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to joomla-dev-framework+unsubscribe AT googlegroups.com.
> Visit this group at http://groups.google.com/group/joomla-dev-framework.

-- 
Framework source code: https://github.com/joomla/joomla-framework
Visit http://developer.joomla.org for more information about developing with Joomla!
--- 
You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-framework+unsubscribe AT googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-framework.