yandex-tank/build.xml

56 lines
1.6 KiB
XML
Raw 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">
<property name="package" value="Tank"/>
<target name="test">
<exec executable="nosetests" dir='Tests' failonerror="true">
<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
-->
2012-09-12 13:18:58 +00:00
<exec executable="debuild" dir='.' failonerror="true">
<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-*" />
</move>
</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>