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

karsten at torproject.org karsten at torproject.org
Tue Nov 15 12:50:46 UTC 2016


commit d154982e5a974bf451086241e79f9b3d9f56b2c6
Author: hiromipaw <silvia at nopressure.co.uk>
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" />



More information about the tor-commits mailing list