mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Phing - Composer-related task - validate Composer
This commit is contained in:
@@ -21,9 +21,9 @@
|
|||||||
depends="app:composer, app:vendors, app:checkout"
|
depends="app:composer, app:vendors, app:checkout"
|
||||||
description="Prepares app to build." />
|
description="Prepares app to build." />
|
||||||
|
|
||||||
<!-- Check / update composer -->
|
<!-- Updates Composer and validates composer.* files -->
|
||||||
<target name="app:composer" description="Checks / updates composer">
|
<target name="app:composer" description="Updates Composer and validates composer.* files">
|
||||||
<echo msg="Checking / updating composer..." />
|
<echo msg="Updating Composer and validating composer.* files..." />
|
||||||
|
|
||||||
<if>
|
<if>
|
||||||
<available file="composer.phar" />
|
<available file="composer.phar" />
|
||||||
@@ -42,7 +42,14 @@
|
|||||||
</if>
|
</if>
|
||||||
</else>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
|
|
||||||
|
<!-- Update Composer -->
|
||||||
<composer command="selfupdate" />
|
<composer command="selfupdate" />
|
||||||
|
|
||||||
|
<!-- Validate Composer -->
|
||||||
|
<composer command="validate">
|
||||||
|
<arg line="--no-check-all --strict" />
|
||||||
|
</composer>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- Project Install/update vendors -->
|
<!-- Project Install/update vendors -->
|
||||||
@@ -68,6 +75,8 @@
|
|||||||
<then>
|
<then>
|
||||||
<composer php="${composer.php}" composer="${composer.path}" command="install">
|
<composer php="${composer.php}" composer="${composer.path}" command="install">
|
||||||
<arg value="--optimize-autoloader" />
|
<arg value="--optimize-autoloader" />
|
||||||
|
<arg value="--prefer-dist" />
|
||||||
|
<arg value="--classmap-authoritative" />
|
||||||
</composer>
|
</composer>
|
||||||
</then>
|
</then>
|
||||||
<else>
|
<else>
|
||||||
|
|||||||
Reference in New Issue
Block a user