diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c68853769743ab8a5981fc9cabd90160ed86ad92..9b1f2aa04f1899654372ff40ad31fc4a2010eb19 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -129,6 +129,34 @@ test_pref35: - output.log expire_in: 1 hour +test_pref38: + stage: test + image: registry.git.laquadrature.net/bastien/raaspotter/base:latest + tags: + - unprivileged + needs: [install] + script: + - curl --silent --location --output artifacts.zip "${CI_SERVER_PROTOCOL}://${CI_SERVER_HOST}:${CI_SERVER_PORT}/api/v4/projects/${CI_PROJECT_ID}/jobs/artifacts/${CI_COMMIT_BRANCH}/download?job=${CI_JOB_NAME}&job_token=${CI_JOB_TOKEN}" || true + - unzip -q artifacts.zip data/pref38/* || true + - rm artifacts.zip || true + - source bin/activate + - /etc/init.d/tor start + - python ./cli.py --pref pref38 + retry: 2 + only: + - main + cache: + key: $CI_COMMIT_REF_SLUG + paths: + - bin/ + - lib/ + - pyvenv.cfg + artifacts: + paths: + - data/pref38/*.txt + - output.log + expire_in: 1 hour + test_pref62: stage: test image: registry.git.laquadrature.net/bastien/raaspotter/base:latest