forked from Gradwell/ComponentManagerShared
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added some useful automations to build.local.xml
- Loading branch information
1 parent
5da1634
commit 2aa6009
Showing
1 changed file
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,32 @@ | ||
<project default="local-help"> | ||
<target name="local-help"> | ||
<echo message="This component has no local build targets." /> | ||
</target> | ||
<target name="local-help"> | ||
<echo message="This component has the following additional commands:" /> | ||
<echo message=""/> | ||
<echo message="git-tag" /> | ||
<echo message=" Tag the current version in git" /> | ||
<echo message="" /> | ||
<echo message="git-force-tag" /> | ||
<echo message=" Force tag the current version in git (use with caution!)" /> | ||
<echo message="" /> | ||
<echo message="publish-and-push" /> | ||
<echo message=" Git push to upstream, publish to PEAR channel" /> | ||
<echo message="" /> | ||
<echo message="tpp - tag, publish, and push" /> | ||
<echo message=" Git tag, push to upstream, publish to PEAR channel" /> | ||
<echo message="" /> | ||
</target> | ||
|
||
<target name="git-tag"> | ||
<exec command="git tag -a -m 'Release ${project.majorVersion}.${project.minorVersion}.${project.patchLevel}' ${project.majorVersion}.${project.minorVersion}.${project.patchLevel}" logoutput="true" checkreturn="true" /> | ||
</target> | ||
<target name="git-force-tag"> | ||
<exec command="git tag -f -a -m 'Release ${project.majorVersion}.${project.minorVersion}.${project.patchLevel}' ${project.majorVersion}.${project.minorVersion}.${project.patchLevel}" logoutput="true" checkreturn="true" /> | ||
</target> | ||
<target name="publish-and-push" depends="publish-local"> | ||
<exec command="git push --mirror" logoutput="true" checkreturn="true" /> | ||
</target> | ||
<target name="tpp" depends="git-force-tag, publish-local"> | ||
<exec command="git push --mirror" logoutput="true" checkreturn="true" /> | ||
</target> | ||
</project> | ||
<!-- vim: set tabstop=2 shiftwidth=2 expandtab: --> |