[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-lib/master] Prepare metrics-lib for jenkins build. Exclude checks when building in jenkins. Add clean task as dep for test.



commit d154982e5a974bf451086241e79f9b3d9f56b2c6
Author: hiromipaw <silvia@xxxxxxxxxxxxxxxx>
Date:   Wed Nov 9 16:48:55 2016 +0100

    Prepare metrics-lib for jenkins build. Exclude checks when building in jenkins. Add clean task as dep for test.
---
 build.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/build.xml b/build.xml
index 794188f..1c1cf6a 100644
--- a/build.xml
+++ b/build.xml
@@ -140,7 +140,7 @@
     </javac>
   </target>
 
-  <target name="test" depends="compile,testcompile">
+  <target name="test" depends="clean,compile,testcompile">
     <junit fork="true" haltonfailure="true" printsummary="off">
       <classpath refid="test.classpath"/>
       <formatter type="plain" usefile="false"/>
@@ -162,7 +162,7 @@
   <taskdef resource="com/puppycrawl/tools/checkstyle/ant/checkstyle-ant-task.properties">
     <classpath refid="checkstyle.classpath" />
   </taskdef>
-  <target name="checks" depends="compile">
+  <target name="checks" depends="compile" unless="jenkins">
     <checkstyle config="${testresources}/metrics_checks.xml">
       <fileset dir="${sources}"
                includes="**/*.java" />

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits