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

karsten at torproject.org karsten at torproject.org
Sat Nov 9 21:44:27 UTC 2019


commit 64782695e66679f485eeaa6030a80ec01598c25c
Author: Iain R. Learmonth <irl at fsfe.org>
Date:   Thu Sep 5 13:59:05 2019 +0100

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..b67b5a4
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,25 @@
+variables:
+  GIT_STRATEGY: clone
+  METRICS_LIB_VERSION: "2.6.2"
+  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 -
+  - popd
+  - mv tmp/metrics-lib-$METRICS_LIB_VERSION/generated/dist/metrics-lib-$METRICS_LIB_VERSION-thin.jar lib
+  - ant -lib /usr/share/java resolve
+  - ant test
+  - ant checks





More information about the tor-commits mailing list