-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
64 lines (58 loc) · 1.76 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<project name="Somda" basedir=".">
<description>Somda</description>
<target name="setup">
<exec executable="git">
<arg value="pull" />
</exec>
<exec executable="php">
<arg value="composer.phar" />
<arg value="install" />
<arg value="--no-plugins" />
<arg value="--no-scripts" />
</exec>
<exec executable="php">
<arg value="composer.phar" />
<arg value="dump-autoload" />
<arg value="--no-dev" />
<arg value="--classmap-authoritative" />
</exec>
<exec executable="php">
<arg value="bin/console" />
<arg value="cache:clear" />
</exec>
</target>
<target name="deploy" depends="setup">
<exec executable="chown">
<arg value="-R" />
<arg value="nginx:nginx" />
<arg value="." />
</exec>
<exec executable="service">
<arg value="php-fpm" />
<arg value="restart" />
</exec>
</target>
<target name="update-database">
<exec executable="php">
<arg value="bin/console" />
<arg value="doctrine:migrations:migrate" />
</exec>
</target>
<target name="phpmd">
<exec executable="vendor/bin/phpmd">
<arg value="src/" />
<arg value="text" />
<arg value="config/phpmd-ruleset.xml" />
</exec>
</target>
<target name="psalm">
<exec executable="vendor/bin/psalm">
<arg value="--show-info=true" />
</exec>
</target>
<target name="phpstan">
<exec executable="vendor/bin/phpstan">
<arg value="analyse" />
</exec>
</target>
</project>