--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE project>
+<project name="Pastell SEDA-NG" default="build-all" basedir=".">
+
+ <property name="phpunit" value="${basedir}/../pastell-v1.4/ext/composer/vendor/bin/phpunit"/>
+
+ <property name="build_path" value="${basedir}/build/" />
+ <property name="test_result_path" value="${build_path}/test/"/>
+
+ <target name="build-all" description="Tout !" depends="test"/>
+
+ <target name="test" description="Test" depends="lint,phpunit"/>
+
+
+ <target name="phpunit-nocover" >
+ <echo message="Lancement de PHPUnit (test unitaire) (sans la couverture)" />
+ <exec executable="${phpunit}" failonerror="true">
+ <arg value="--configuration"/>
+ <arg path="${basedir}/test/phpunit.xml"/>
+ </exec>
+ </target>
+
+ <target name="phpunit" >
+ <echo message="Lancement de PHPUnit (test unitaire)" />
+ <exec executable="${phpunit}" failonerror="true">
+ <arg value="--configuration"/>
+ <arg path="${basedir}/test/phpunit.xml"/>
+ <arg value="--log-junit" />
+ <arg path="${test_result_path}/phpunit-result.xml"/>
+ <arg value="--coverage-clover" />
+ <arg path ="${test_result_path}/phpunit-coverage.xml"/>
+ <arg value="--coverage-html" />
+ <arg path ="${test_result_path}/server-coverage/"/>
+ </exec>
+ </target>
+
+ <target name="lint"
+ unless="lint.done"
+ description="Lancement de lint (vérification syntaxique PHP)">
+ <apply executable="php" taskname="lint">
+ <arg value="-l" />
+
+ <fileset dir="${basedir}">
+ <include name="**/*.php" />
+ <exclude name="build/" />
+ <exclude name="ext/" />
+ <modified />
+ </fileset>
+
+ </apply>
+
+ <property name="lint.done" value="true"/>
+ </target>
+
+ <target name="clean">
+ <echo message="Nettoyage du répertoire build"/>
+ <delete dir="${build_path}"/>
+ </target>
+
+</project>
\ No newline at end of file