-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
55 lines (44 loc) · 1.76 KB
/
Copy pathbuild.xml
File metadata and controls
55 lines (44 loc) · 1.76 KB
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
<project name="geo-area-calculator" basedir="./" default="build">
<property name="vendor_dir" value="vendor" override="false"/>
<property name="tests_dir" value="tests/unit" override="false"/>
<target name="cleanup">
<echo>Очищаем временные файлы, вендоров и кэш</echo>
<delete>
<fileset dir="${vendor_dir}/">
<include name="**"/>
</fileset>
<fileset dir="${tests_dir}/runtime/cache">
<include name="**"/>
</fileset>
</delete>
</target>
<target name="update_git">
<echo>Получаем обновления из репозитариев</echo>
<exec command="git pull" passthru="True" />
</target>
<target name="update_composer">
<echo>Получаем обновления пакетов</echo>
<exec command="composer update" passthru="True" />
</target>
<target name="update_composer_forced">
<echo>Устанавливаем пакеты</echo>
<exec command="rm -f ./composer.lock" />
<exec command="composer update" passthru="True" />
</target>
<target name="phpunit">
<echo>PhpUnit tests:</echo>
<exec command="phpunit" passthru="True" />
</target>
<target name="qunit">
<echo>JavaScript Node-QUnit tests:</echo>
<exec command="node ./qunit-runner.js" />
</target>
<target name="update" depends="update_git, update_composer">
</target>
<target name="test" depends="phpunit, qunit">
</target>
<target name="build" depends="update">
</target>
<target name="rebuild" depends="cleanup, update_git, update_composer_forced, test">
</target>
</project>