From 2db125c55fbcadba89a6a79a53d01aa76db65599 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 : 7.0 --- .gitlab-ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30b4d65ee2..0c08d3141d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,6 +12,9 @@ stages: - test - build +variables: + TMPDIR: /tmp + packages: stage: preparation rules: @@ -149,8 +152,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" check-cookiecutter-module: extends: .check @@ -162,9 +165,9 @@ check-cookiecutter-module: before_script: - pip install cookiecutter script: - - cookiecutter --no-input cookiecutter-module -o /tmp - - flake8 /tmp/my_module - - isort --multi-line VERTICAL_GRID --check --diff /tmp/my_module + - cookiecutter --no-input cookiecutter-module -o "${TMPDIR}" + - flake8 "${TMPDIR}/my_module" + - isort --multi-line VERTICAL_GRID --check --diff "${TMPDIR}/my_module" rules: - changes: - cookiecutter-module/**/* @@ -219,7 +222,7 @@ check-template-modules: .test-db: extends: .test-tox variables: - DB_CACHE: /tmp/cache + DB_CACHE: "${TMPDIR}/cache" script: - tox -e "py${PYTHON_VERSION/./}-${DATABASE}" -c "${PACKAGE}" -vv -- -v --output-file junit.xml