forked from jadell/neo4jphp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
53 lines (50 loc) · 1.28 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Neo4jPHP" default="test">
<taskdef name="neo4jphpversion" classname="Neo4jPhpVersionTask" />
<!-- Target: test -->
<target name="test">
<phpunit bootstrap="tests/bootstrap.php">
<formatter type="summary" usefile="false" />
<batchtest>
<fileset dir="tests">
<include name="**/*Test.php" />
</fileset>
</batchtest>
</phpunit>
</target>
<!-- Target: build -->
<target name="build">
<delete dir="./build" />
<mkdir dir="./build" />
<copy todir="./build">
<fileset dir=".">
<include name="README.md" />
<include name="LICENSE" />
<include name="lib/" />
</fileset>
</copy>
</target>
<!-- Target: package -->
<target name="package" depends="build">
<neo4jphpversion property="version" />
<delete file="./neo4jphp.phar" />
<pharpackage
destfile="./neo4jphp.phar"
basedir="./build"
compression="none"
stub="./stub.php"
signature="sha1">
<fileset dir="./build">
<include name="**/**" />
</fileset>
<metadata>
<element name="version" value="${version}" />
<element name="authors">
<element name="Josh Adell">
<element name="email" value="josh.adell@gmail.com" />
</element>
</element>
</metadata>
</pharpackage>
</target>
</project>