GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 5173fe1d authored by Iain R. Learmonth's avatar Iain R. Learmonth

Adds GitLab CI for tests and checks

Configuration is held in the .gitlab-ci.yml file.

Fixes: #31400
parent 301841c8
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment