-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
36 lines (30 loc) · 1.83 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="UTF-8"?>
<project name="Aimeos TYPO3 migration extension" default="all">
<target name="update" description="Updates the libraries">
<exec command="git pull https://github.com/aimeos/aimeos-typo3-migrate.git" checkreturn="true" logoutput="true" />
<exec command="COMPOSER=composer.aimeos.json composer update --working-dir ${project.basedir}" checkreturn="true" logoutput="true" />
</target>
<target name="deploy" description="Executes all deployments">
<exec command="COMPOSER=composer.aimeos.json composer install --no-dev --working-dir ${project.basedir}" checkreturn="true" logoutput="true" />
<propertyprompt propertyName="version" promptText="Enter release version" promptCharacter=":" useExistingValue="true"/>
<reflexive>
<fileset dir="." includes="ext_emconf.php" />
<filterchain>
<replaceregexp>
<regexp pattern="'version' => '[^']*'" replace="'version' => '${version}'"/>
</replaceregexp>
</filterchain>
</reflexive>
<exec command="zip -r ../aimeos_migrate_${version}.zip * -x \*.git\*" checkreturn="true" logoutput="true"/>
<filehash file="../aimeos_migrate_${version}.zip" hashtype="1" />
<echo msg="SHA1 hash value: ${filehashvalue}" />
</target>
<target name="release" description="Creates new release">
<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} -m 'Release ${version}'" checkreturn="true" logoutput="true" />
<exec command="git push origin ${version}" checkreturn="true" logoutput="true" />
<exec command="git push --tags" checkreturn="true" logoutput="true" />
</target>
<target name="all" depends="update" description="Executes all essential targets" />
</project>