From dca76fd8e7403a4685c39ec5750b0c68a769f008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 17 Dec 2024 16:00:31 +0100 Subject: [PATCH] Use TMPDIR for CI jobs (grafted from 6ecbe34f6bfcf0c46f3fc0218a50a46354ff0af7) --HG-- branch : 6.0 --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d5fec6c73d..0696f44346 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,9 @@ stages: - test - build +variables: + TMPDIR: /tmp + packages: stage: preparation rules: @@ -128,8 +131,8 @@ check-eslint: check-ci-modules: extends: .check script: - - python .gitlab-scripts/generate-ci.py $TMPDIR/gitab-ci-modules.yml - - cmp .gitlab-ci-modules.yml $TMPDIR/gitab-ci-modules.yml + - python .gitlab-scripts/generate-ci.py "${TMPDIR}/gitab-ci-modules.yml" + - cmp .gitlab-ci-modules.yml "${TMPDIR}/gitab-ci-modules.yml" .test: stage: test @@ -162,7 +165,7 @@ check-ci-modules: .test-db: extends: .test-tox variables: - DB_CACHE: /tmp/cache + DB_CACHE: "${TMPDIR}/cache" script: - tox -e "py${PYTHON_VERSION/./}-${DATABASE}" -c "${PACKAGE}"