forked from yandex/yandex-tank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
56 lines (54 loc) · 1.58 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
<?xml version="1.0" encoding="UTF-8"?>
<!-- http://bhfsteve.blogspot.com/2012/04/automated-python-unit-testing-code_27.html
PYTHONPATH=''
-->
<project name="Tank" default="debian">
<property name="package" value="yandextank"/>
<target name="test">
<exec executable="nosetests" dir='tests' failonerror="true">
<arg value="--with-xunit" />
<arg value="--all-modules" />
<arg value="--traverse-namespace" />
<arg value="--with-coverage" />
<arg value="--cover-inclusive" />
<arg value="--cover-erase" />
<arg value="--cover-package=${package}"/>
<arg value="-v"/>
</exec>
</target>
<target name="pylint">
<exec executable="pylint" dir='.' output="pylint.out">
<arg value="-f" />
<arg value="parseable" />
<arg value="-d" />
<arg value="I0011,C0301,R0201,W0703,W0122,R0902,R0903,W0232" />
<arg value="${package}" />
</exec>
</target>
<target name="debian" depends="loc,pylint,test">
<!--
<exec executable="dch" dir='.' failonerror="true">
<arg value="-n" />
<arg value="Jenkins CI build" />
</exec>
-->
<!-- <exec executable="debuild" dir='.' failonerror="true">
<arg value="-I" />
<arg value="-us" />
<arg value="-uc" />
<arg value="--lintian-opts"/>
<arg value="--fail-on-warnings"/>
</exec>
<move todir=".">
<fileset dir=".." includes="yandex-load-*" />
</move> -->
</target>
<target name="loc">
<exec executable="sloccount" dir='.' failonerror="true" output="sloccount.sc">
<arg value="--duplicates" />
<arg value="--wide" />
<arg value="--details" />
<arg value="." />
</exec>
</target>
</project>