|
@@ -9,15 +9,15 @@
|
|
|
|
|
|
<!-- Define the SonarQube global properties (the most usual way is to pass these properties via the command line) -->
|
|
|
<property name="sonar.host.url" value="https://forge.univ-artois.fr/sonar67" />
|
|
|
- <property name="sonar.projectKey" value="${etudiant}:2018:MyLisp" />
|
|
|
- <property name="sonar.projectName" value="${etudiant} Lisp 18" />
|
|
|
+ <property name="sonar.projectKey" value="${etudiant}:2019:MyLisp" />
|
|
|
+ <property name="sonar.projectName" value="${etudiant} Lisp 19" />
|
|
|
<property name="sonar.projectVersion" value="1.0" />
|
|
|
<property name="sonar.java.source" value="${project.java.version}" />
|
|
|
<property name="sonar.java.binaries" value="build" />
|
|
|
<property name="sonar.java.libraries" value="lib/*.jar" />
|
|
|
<property name="sonar.sources" value="src" />
|
|
|
<property name="sonar.exclusions" value="**/*Test*" />
|
|
|
- <property name="sonar.tests" value="TDD2018TESTS/src,TDD2018OWNTESTS/src" />
|
|
|
+ <property name="sonar.tests" value="TDD2019TESTS/src,TDD2019OWNTESTS/src" />
|
|
|
<property name="sonar.junit.reportPaths" value="${testreports}" />
|
|
|
<property name="sonar.jacoco.reportPath" value="${testreports}/jacoco.exec" />
|
|
|
<property name="sonar.pitest.reportsDirectory" value="${testreports}" />
|
|
@@ -51,35 +51,35 @@
|
|
|
|
|
|
<target name="compilepublictests">
|
|
|
<echo>Compilation des tests publics</echo>
|
|
|
- <javac includeantruntime="true" srcdir="TDD2018TESTS/src" destdir="${build}" source="${project.java.version}" debug="true" encoding="${encoding}">
|
|
|
+ <javac includeantruntime="true" srcdir="TDD2019TESTS/src" destdir="${build}" source="${project.java.version}" debug="true" encoding="${encoding}">
|
|
|
<classpath refid="mypath" />
|
|
|
</javac>
|
|
|
<copy todir="${build}">
|
|
|
- <fileset dir="TDD2018TESTS/src">
|
|
|
+ <fileset dir="TDD2019TESTS/src">
|
|
|
<include name="**/*.story" />
|
|
|
</fileset>
|
|
|
</copy>
|
|
|
</target>
|
|
|
<target name="compileprivatetests" if="private.tests.found">
|
|
|
<echo>Compilation des tests privés</echo>
|
|
|
- <javac includeantruntime="true" srcdir="TDD2018HIDDENTESTS/src" destdir="${build}" source="${project.java.version}" debug="true" encoding="${encoding}">
|
|
|
+ <javac includeantruntime="true" srcdir="TDD2019HIDDENTESTS/src" destdir="${build}" source="${project.java.version}" debug="true" encoding="${encoding}">
|
|
|
<classpath refid="mypath" />
|
|
|
</javac>
|
|
|
|
|
|
<copy todir="${build}">
|
|
|
- <fileset dir="TDD2018HIDDENTESTS/src">
|
|
|
+ <fileset dir="TDD2019HIDDENTESTS/src">
|
|
|
<include name="**/*.story" />
|
|
|
</fileset>
|
|
|
</copy>
|
|
|
</target>
|
|
|
<target name="compileowntests">
|
|
|
<echo>Compilation des tests personnels</echo>
|
|
|
- <javac includeantruntime="true" srcdir="TDD2018OWNTESTS/src" destdir="${build}" source="${project.java.version}" debug="true" encoding="${encoding}">
|
|
|
+ <javac includeantruntime="true" srcdir="TDD2019OWNTESTS/src" destdir="${build}" source="${project.java.version}" debug="true" encoding="${encoding}">
|
|
|
<classpath refid="mypath" />
|
|
|
</javac>
|
|
|
|
|
|
<copy todir="${build}">
|
|
|
- <fileset dir="TDD2018OWNTESTS/src">
|
|
|
+ <fileset dir="TDD2019OWNTESTS/src">
|
|
|
<include name="**/*.story" />
|
|
|
</fileset>
|
|
|
</copy>
|
|
@@ -90,7 +90,7 @@
|
|
|
<classpath path="lib/jacocoant.jar" />
|
|
|
</taskdef>
|
|
|
<antcall target="compilepublictests" />
|
|
|
- <available property="private.tests.found" file="TDD2018HIDDENTESTS/src" type="dir" />
|
|
|
+ <available property="private.tests.found" file="TDD2019HIDDENTESTS/src" type="dir" />
|
|
|
<antcall target="compileprivatetests" />
|
|
|
<antcall target="compileowntests" />
|
|
|
<jacoco:coverage destfile="${sonar.jacoco.reportPath}">
|
|
@@ -111,7 +111,7 @@
|
|
|
</jacoco:coverage>
|
|
|
</target>
|
|
|
|
|
|
- <target name="m1" description="Verification des projets de TDD2018" depends="clean,build,tests" />
|
|
|
+ <target name="m1" description="Verification des projets de TDD2019" depends="clean,build,tests" />
|
|
|
|
|
|
<!-- Define the SonarQube target -->
|
|
|
<target name="sonar" depends="m1" description="Analyse le code avec SonarQube">
|