-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
28 lines (22 loc) · 827 Bytes
/
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="cleangame" default="build" basedir=".">
<target name="install" >
<phingcall target="chmod" />
<phingcall target="vendors" />
</target>
<target name="build" >
<phingcall target="vendors" />
<phingcall target="runtest" />
</target>
<target name="chmod">
<exec command="chmod -R 777 data" />
<exec command="setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx data" />
<exec command="setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx data" />
</target>
<target name="vendors">
<exec command="./composer.phar install" outputProperty="return" />
</target>
<target name="runtest">
<exec command="phpunit -c app/" passthru="true"/>
</target>
</project>