Use TMPDIR for CI jobs

(grafted from 6ecbe34f6bfcf0c46f3fc0218a50a46354ff0af7)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier committed 2024-12-17 16:00:31 +01:00
1 parent 9f883c973e
commit 2db125c55f
1 file changed
+9 -6
+9 -6
View File
@@ -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