forked from pycontribs/jenkinsapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
53 lines (43 loc) · 1.08 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="jenkinsapi" default="all">
<property file="build.properties" />
<target name="all" depends="clean, compile" />
<target name="clean">
<delete failonerror="false">
<fileset dir="build" />
</delete>
<delete failonerror="false">
<fileset dir="dist" />
</delete>
<delete failonerror="false">
<fileset dir="doc/build" />
</delete>
</target>
<target name="compile" depends="install,test,sdist,doc" />
<target name="install">
<exec executable="python">
<arg value="setup.py" />
<arg value="develop" />
</exec>
</target>
<target name="test">
<exec executable="python">
<arg value="setup.py" />
<arg value="nosetests" />
</exec>
</target>
<target name="sdist" depends="test">
<exec executable="python">
<arg value="setup.py" />
<arg value="sdist" />
<arg value="upload" />
</exec>
</target>
<target name="doc" depends="sdist">
<exec executable="python">
<arg value="setup.py" />
<arg value="build_sphinx" />
<arg value="upload_sphinx" />
</exec>
</target>
</project>