diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 97674917eede45f80c0d1c94c9b1681b466e2d5f..22164348c8c9929a305e021d39c17112cdbc794f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -75,24 +75,25 @@ pep8: - unprivileged needs: [install] script: - - curl --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/"${PREF}"/* || true - - rm artifacts.zip || true - source bin/activate + - pip install --upgrade -r requirements.txt - /etc/init.d/tor start - python ./cli.py --pref "${PREF}" retry: 2 cache: - key: $CI_COMMIT_REF_SLUG + key: $CI_COMMIT_REF_SLUG-$CI_JOB_NAME_SLUG + fallback_keys: + - $CI_COMMIT_REF_SLUG paths: - bin/ - lib/ - pyvenv.cfg + - data/${PREF}/*.txt artifacts: paths: - data/${PREF}/*.txt - output_${PREF}.log - expire_in: 1 week + expire_in: 2 days rules: - if: $CI_PIPELINE_SOURCE == "schedule" && $COMPILE_DOCKER == null