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

[tor-commits] [metrics-web/release] Adds GitLab CI for tests and checks



commit d4086dde65cb51ca1a39340b1b7a4e9d54981914
Author: Iain R. Learmonth <irl@xxxxxxxx>
Date:   Thu Sep 5 13:44:34 2019 +0100

    Adds GitLab CI for tests and checks
    
    Configuration is held in the .gitlab-ci.yml file.
    
    Fixes: #31402
---
 .gitlab-ci.yml | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..d10fcb8
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,28 @@
+variables:
+  GIT_STRATEGY: clone
+  METRICS_LIB_VERSION: "2.6.2"
+  EXONERATOR_VERSION: "4.1.0"
+  JAVA_TOOL_OPTIONS: "-Dfile.encoding=UTF-8"
+
+stages:
+ - test
+
+test:
+ stage: test
+ image: debian:buster
+ script:
+  - apt update
+  - apt -y install default-jdk ant ivy git curl
+  - 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 -lib /usr/share/java resolve
+  - ant test
+  - ant checks



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