forked from aimeos/aimeos-laravel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
29 lines (22 loc) · 1.3 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Aimeos Laravel package" default="update">
<property name="coredir" value="${project.basedir}/vendor/arcavias/arcavias-core" />
<property name="extdir" value="${project.basedir}/ext" />
<target name="update" description="Updates the bundle">
<exec command="git pull https://github.com/aimeos/aimeos-laravel.git" checkreturn="true" logoutput="true" />
<exec command="composer update --working-dir ${project.basedir}" checkreturn="true" logoutput="true" />
<copy todir="public/client/extjs/">
<fileset dir="${coredir}/client/extjs/" expandsymboliclinks="true" />
</copy>
<copy todir="public/themes/">
<fileset dir="${coredir}/client/html/themes/" expandsymboliclinks="true" />
</copy>
</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 aimeos-laravel_${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>
</project>