-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.xml
More file actions
55 lines (41 loc) · 1.58 KB
/
Copy pathbuild.xml
File metadata and controls
55 lines (41 loc) · 1.58 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="circle-cli" default="default">
<target name="default">
<echo message="DONE"/>
</target>
<target name="build">
<!-- Make sure we have dev dependencies -->
<exec command="composer install" passthru="true"/>
<!-- Make sure all the tests are passing. -->
<phingcall target="tests"/>
<!-- Build the docs. -->
<phingcall target="docs"/>
<!-- Remove the dev dependencies and build the phar. -->
<exec command="composer install --no-dev" passthru="true"/>
<phingcall target="box"/>
</target>
<target name="docs">
<property name="tempdocs" value="./docs-temp"/>
<!-- Generate the docs into a temporary folder. -->
<exec command="./bin/sami.php update ./sami/config.php --force" passthru="true"/>
<!-- Clean out the docs -->
<delete failonerror="true" includeemptydirs="true">
<fileset dir="./docs" defaultexcludes="false">
<include name="**"/>
<exclude name=".git"/>
<exclude name="circle.yml"/>
</fileset>
</delete>
<!-- Move new docs into place and then clean-up. -->
<exec command="mv ${tempdocs}/* ./docs" passthru="true" checkreturn="true"/>
<exec command="rmdir ${tempdocs}" passthru="true" checkreturn="true"/>
</target>
<target name="box">
<exec command="box build -v" passthru="true"/>
</target>
<target name="tests">
<exec command="./bin/phpunit" passthru="true" checkreturn="true"/>
</target>
<target name="tests:coverage">
<exec command="./bin/phpunit --coverage-html coverage" passthru="true" checkreturn="true"/>
</target>
</project>