Files
Tippy/build.xml
Julien Lengrand-Lambert dafc526277 Adds Ant usage for compilation and to run all tests at once.
TODO : 
Find how to generate doc using Ant. 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrandlambert.fr>
2011-12-05 21:58:48 +01:00

27 lines
785 B
XML

<project name="Tippy" default="tests" basedir=".">
<taskdef resource="pyAntTasks.properties"/>
<property name="src.dir" value="tippy"/>
<property name="ex.dir" value="tippy/examples"/>
<property name="tests.dir" value="tippy/tests"/>
<target name="compile all">
<py-compile dir="${src.dir}" pythonpath="${src.dir}" optimize="0"/>
</target>
<target name="compile examples">
<py-compile dir="${ex.dir}" pythonpath="${ex.dir}" optimize="0"/>
</target>
<target name="compile tests">
<py-compile dir="${tests.dir}" pythonpath="${tests.dir}" optimize="0"/>
</target>
<target name="tests">
<py-test pythonpath="." dir="${src.dir}">
<fileset dir="${src.dir}">
<include name="*/test_*"/>
</fileset>
</py-test>
</target>
</project>