-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathbuild.xml
18 lines (14 loc) · 949 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<project name="Aimeos Symfony2 bundle" default="update">
<target name="update" description="Updates the bundle">
<exec command="git pull https://github.com/aimeos/aimeos-symfony2.git" checkreturn="true" logoutput="true" />
<exec command="composer update --working-dir ${project.basedir}" checkreturn="true" logoutput="true" />
</target>
<target name="release" description="Creates new release" depends="update">
<propertyprompt propertyName="version" promptText="Enter release version" promptCharacter=":" useExistingValue="true"/>
<exec command="git branch ${version}" checkreturn="true" logoutput="true" />
<exec command="git tag -a ${version}.1 -m 'Release ${version}.1'" checkreturn="true" logoutput="true" />
<exec command="git push origin ${version}" checkreturn="true" logoutput="true" />
<exec command="git push --tags" checkreturn="true" logoutput="true" />
</target>
</project>