mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/11291] phing packaging: Export composer.phar and install dependencies.
PHPBB3-11291
This commit is contained in:
@@ -167,15 +167,21 @@
|
|||||||
checkreturn="true" />
|
checkreturn="true" />
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Make sure composer is available before calling it.
|
If composer.phar exists in this version of the tree, also export
|
||||||
Older versions of the tree didn't use it.
|
it into ${dir}, install dependencies, then delete it again.
|
||||||
-->
|
-->
|
||||||
|
<exec dir="."
|
||||||
|
command="git ls-tree ${revision} composer.phar"
|
||||||
|
outputProperty='composer-ls-tree-output' />
|
||||||
<if>
|
<if>
|
||||||
<available file='${dir}/../composer.phar' type='file' />
|
<not><equals arg1="${composer-ls-tree-output}" arg2="" trim="true" /></not>
|
||||||
<then>
|
<then>
|
||||||
|
<exec dir="."
|
||||||
|
command="git archive ${revision} composer.phar | tar -xf - -C ${dir}" />
|
||||||
<exec dir="${dir}"
|
<exec dir="${dir}"
|
||||||
command="php ../composer.phar install"
|
command="php composer.phar install"
|
||||||
passthru="true" />
|
passthru="true" />
|
||||||
|
<delete file="${dir}/composer.phar" />
|
||||||
</then>
|
</then>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user