Use ant tasks to fetch metrics dependencies.

Implements part of #31649.
This commit is contained in:
Karsten Loesing 2019-09-23 15:28:41 +02:00
parent 7ccae10c5c
commit c30b25acbd
4 changed files with 18 additions and 11 deletions

View File

@ -1,7 +1,5 @@
variables:
GIT_STRATEGY: clone
METRICS_LIB_VERSION: "2.6.2"
EXONERATOR_VERSION: "4.1.0"
JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF-8"
stages:
@ -16,13 +14,8 @@ test:
- git submodule init
- git submodule update
- mkdir lib
- mkdir tmp
- pushd tmp
- curl https://dist.torproject.org/metrics-lib/$METRICS_LIB_VERSION/metrics-lib-$METRICS_LIB_VERSION.tar.gz | tar xzf -
- curl https://dist.torproject.org/exonerator/$EXONERATOR_VERSION/exonerator-$EXONERATOR_VERSION.tar.gz | tar xzf -
- popd
- mv tmp/metrics-lib-$METRICS_LIB_VERSION/generated/dist/metrics-lib-$METRICS_LIB_VERSION-thin.jar lib
- mv tmp/exonerator-$EXONERATOR_VERSION/generated/dist/exonerator-$EXONERATOR_VERSION-thin.jar lib
- ant fetch-metrics-lib
- ant fetch-exonerator
- ant -lib /usr/share/java resolve
- ant test
- ant checks

View File

@ -308,6 +308,20 @@
</exec>
</target>
<target name="fetch-exonerator" depends="init"
description="Fetch ExoneraTor from dist.torproject.org">
<mkdir dir="${downloadedlibs}"/>
<get src="https://dist.torproject.org/exonerator/${exoneratorversion}/exonerator-${exoneratorversion}.tar.gz"
dest="${downloadedlibs}"/>
<untar src="${downloadedlibs}/exonerator-${exoneratorversion}.tar.gz"
dest="${libs}" compression="gzip">
<patternset>
<include name="**/exonerator-${exoneratorversion}-thin.jar"/>
</patternset>
<mapper type="flatten"/>
</untar>
</target>
<!-- The following line adds the common targets and properties
for Metrics' Java Projects.
-->

@ -1 +1 @@
Subproject commit 0674958512c705255d4ec4631d3280068ce0a7af
Subproject commit 07c2a00c27f0d536223f8b5a61fc91e60eb524d4

@ -1 +1 @@
Subproject commit c324d11035059bd9677af120dc6471aebebf980a
Subproject commit c1581dd8ca26798dc90ea2189ca41636b50e1e0d