Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit cd667b4

Browse files
committed
Cleaning vendor dir of deployment artifact.
1 parent fba1561 commit cd667b4

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

template/build/core/phing/tasks/deploy.xml

+9-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,18 @@
3636
</if>
3737
</target>
3838

39-
<target name="deploy:artifact:add-remote" description="Adds a git remote and checks out deploy branch from upstream.">
39+
<target name="deploy:artifact:remote:add" description="Adds a git remote and checks out deploy branch from upstream.">
4040
<echo message="Fetching from git remote ${deploy.remote}"/>
4141

4242
<!-- Generate an md5 sum of the remote URL to use as remote name. -->
4343
<exec command="echo ${deploy.remote} | openssl md5 | cut -d' ' -f 2" outputProperty="remoteName" checkreturn="true"/>
4444
<exec command="git remote add ${remoteName} ${deploy.remote}" dir="${deploy.dir}" logoutput="true" passthru="true" checkreturn="true"/>
45+
46+
<!-- @todo Only call this for the first remote. -->
47+
<phingcall target="deploy:artifact:remote:pull" />
48+
</target>
49+
50+
<target name="deploy:artifact:remote:pull" description="Checks out deploy branch from upstream remote.">
4551
<exec command="git fetch ${remoteName} ${deploy.branch}" dir="${deploy.dir}" logoutput="true" passthru="true"/>
4652

4753
<!-- Create the new branch, "[source-branch-name]-build". -->
@@ -52,7 +58,7 @@
5258
</target>
5359

5460
<target name="deploy:artifact:add-remotes" description="Add remotes and fetch upstream refs.">
55-
<foreach list="${git.remotes}" param="deploy.remote" target="deploy:artifact:add-remote"/>
61+
<foreach list="${git.remotes}" param="deploy.remote" target="deploy:artifact:remote:add"/>
5662
</target>
5763

5864
<target name="deploy:artifact:build" description="Generates a deploy-ready build in deploy.dir."
@@ -72,6 +78,7 @@
7278
<delete dir="${deploy.dir}/hooks" failonerror="false" quiet="true" />
7379
<delete dir="${deploy.dir}/factory-hooks" failonerror="false" quiet="true" />
7480
<delete dir="${deploy.dir}/patches" failonerror="false" quiet="true" />
81+
<delete dir="${deploy.dir}/vendor" failonerror="false" quiet="true" />
7582
</target>
7683

7784
<target name="deploy:artifact:commit">

0 commit comments

Comments
 (0)