yandex-tank/build.xml

56 lines
1.6 KiB
XML
Raw Permalink Normal View History

2012-09-12 13:18:58 +00:00
<?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">
2015-02-05 14:47:05 +00:00
<property name="package" value="yandextank"/>
2012-09-12 13:18:58 +00:00
<target name="test">
2015-02-05 14:47:05 +00:00
<exec executable="nosetests" dir='tests' failonerror="true">
2012-09-12 13:18:58 +00:00
<arg value="--with-xunit" />
<arg value="--all-modules" />
<arg value="--traverse-namespace" />
2013-03-06 10:49:07 +00:00
<arg value="--with-coverage" />
2012-09-12 13:18:58 +00:00
<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" />
2012-10-25 14:12:24 +00:00
<arg value="I0011,C0301,R0201,W0703,W0122,R0902,R0903,W0232" />
2012-09-12 13:18:58 +00:00
<arg value="${package}" />
</exec>
</target>
2012-09-13 11:16:06 +00:00
<target name="debian" depends="loc,pylint,test">
2013-01-27 14:37:50 +00:00
<!--
2012-09-12 13:18:58 +00:00
<exec executable="dch" dir='.' failonerror="true">
<arg value="-n" />
<arg value="Jenkins CI build" />
</exec>
2013-01-27 14:37:50 +00:00
-->
2015-02-05 14:47:05 +00:00
<!-- <exec executable="debuild" dir='.' failonerror="true">
2012-09-12 13:18:58 +00:00
<arg value="-I" />
<arg value="-us" />
<arg value="-uc" />
2012-09-12 13:44:40 +00:00
<arg value="--lintian-opts"/>
<arg value="--fail-on-warnings"/>
2012-09-12 13:18:58 +00:00
</exec>
<move todir=".">
<fileset dir=".." includes="yandex-load-*" />
2015-02-05 14:47:05 +00:00
</move> -->
2012-09-12 13:18:58 +00:00
</target>
2012-09-13 11:16:06 +00:00
<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>
2012-09-12 13:18:58 +00:00
</project>