Skip to content

Commit 82594e2

Browse files
author
René Witte
committed
added missing ant build file to run pipeline smoke test #656
1 parent 57a5c28 commit 82594e2

File tree

1 file changed

+89
-0
lines changed

1 file changed

+89
-0
lines changed

buildtest.xml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<!--
2+
* Multilingual Noun Phrase Extractor (MuNPEx)
3+
* http://www.semanticsoftware.info/munpex
4+
*
5+
* ant build file for running demo pipeline tests
6+
*
7+
* Copyright (c) 2005, 2006, 2010, 2012, 2015 Rene Witte (http://rene-witte.net)
8+
*
9+
* This library is free software; you can redistribute it and/or
10+
* modify it under the terms of the GNU Lesser General Public
11+
* License as published by the Free Software Foundation; either
12+
* version 3.0 of the License, or (at your option) any later version.
13+
*
14+
* This library is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
* Lesser General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Lesser General Public
20+
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
21+
-->
22+
<project name="MuNPEx_EN_Test" basedir="." xmlns:jacoco="antlib:org.jacoco.ant">
23+
<property file="build.properties" />
24+
25+
<!-- Make environment variables available -->
26+
<property environment="env" />
27+
28+
<!-- If environment variable GATE_HOME is set, use it for
29+
gate.home (unless it was already set in build.properties -->
30+
<condition property="gate.home" value="${env.GATE_HOME}">
31+
<isset property="env.GATE_HOME"/>
32+
</condition>
33+
<property name="gate.home" location="/usr/local/durmtools/GATE/gate" />
34+
<property name="gate.lib" location="${gate.home}/lib" />
35+
<property name="gate.jar" location="${gate.home}/bin/gate.jar" />
36+
<property name="test.dir" location="test" />
37+
<property name="test.reports.dir" location="${test.dir}/reports" />
38+
<property name="test.src.dir" location="${test.dir}/src" />
39+
<property name="test.classes.dir" location="${test.dir}/classes" />
40+
41+
<!-- Path to compile - includes gate.jar and GATE/lib/*.jar -->
42+
<path id="compile.classpath">
43+
<pathelement location="${gate.jar}" />
44+
<fileset dir="${gate.lib}">
45+
<include name="**/*.jar" />
46+
<include name="**/*.zip" />
47+
</fileset>
48+
</path>
49+
50+
<!-- For JaCoCo Ant tasks -->
51+
<taskdef uri="antlib:org.jacoco.ant" resource="org/jacoco/ant/antlib.xml">
52+
<classpath path="/usr/local/durmtools/jacoco/lib/jacocoant.jar" />
53+
</taskdef>
54+
<property name="result.dir" location="./target" />
55+
<property name="result.classes.dir" location="${classes.dir}" />
56+
<property name="result.report.dir" location="${result.dir}/site/jacoco" />
57+
<property name="result.exec.file" location="${result.dir}/jacoco.exec" />
58+
59+
<!-- Pipeline tests -->
60+
61+
<path id="test.classpath">
62+
<path refid="compile.classpath" />
63+
<pathelement location="${jar.location}" />
64+
</path>
65+
66+
<target name="test.prepare">
67+
<mkdir dir="${test.classes.dir}" />
68+
<mkdir dir="${test.reports.dir}" />
69+
</target>
70+
71+
<target name="test.compile" depends="test.prepare">
72+
<javac classpathref="test.classpath" srcdir="${test.src.dir}" destdir="${test.classes.dir}" debug="true" debuglevel="lines,vars,source" source="1.7" includeantruntime="false"/>
73+
</target>
74+
75+
<target name="test" depends="test.compile">
76+
<jacoco:coverage destfile="${result.exec.file}">
77+
<junit fork="yes" haltonfailure="yes" printsummary="on" maxmemory="1000m">
78+
<test name="info.semanticsoftware.munpex.MuNPExTest_EN" toDir="${test.reports.dir}" />
79+
<sysproperty key="munpex.en.app.name"
80+
file="${basedir}/package/MuNPEx-EN.xgapp" />
81+
<formatter type="xml" />
82+
<classpath>
83+
<path refid="test.classpath" />
84+
<pathelement path="${test.classes.dir}" />
85+
</classpath>
86+
</junit>
87+
</jacoco:coverage>
88+
</target>
89+
</project>

0 commit comments

Comments
 (0)