Skip to content
Snippets Groups Projects
Commit 294950df authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[data/gitlab-ci] cache pre-commit caches; improve CI scripts

parent d83ed574
No related branches found
No related tags found
No related merge requests found
Pipeline #52916 canceled
...@@ -7,7 +7,8 @@ variables: ...@@ -7,7 +7,8 @@ variables:
PYTHONUNBUFFERED: "1" PYTHONUNBUFFERED: "1"
CONDA_ROOT: "${CI_PROJECT_DIR}/miniconda" CONDA_ROOT: "${CI_PROJECT_DIR}/miniconda"
BOOTSTRAP: "https://gitlab.idiap.ch/bob/bob.devtools/raw/master/bob/devtools/bootstrap.py" BOOTSTRAP: "https://gitlab.idiap.ch/bob/bob.devtools/raw/master/bob/devtools/bootstrap.py"
TORCH_HOME: "${CI_PROJECT_DIR}/torch" TORCH_HOME: "${CI_PROJECT_DIR}/.cache/torch"
PRE_COMMIT_HOME: "${CI_PROJECT_DIR}/.cache/pre-commit"
# Definition of our build pipeline order # Definition of our build pipeline order
...@@ -28,7 +29,9 @@ stages: ...@@ -28,7 +29,9 @@ stages:
- conda activate base - conda activate base
cache: cache:
paths: paths:
- torch - miniconda.sh
- ${TORCH_HOME}
- ${PRE_COMMIT_HOME}
# Build targets # Build targets
......
...@@ -7,7 +7,8 @@ variables: ...@@ -7,7 +7,8 @@ variables:
PYTHONUNBUFFERED: "1" PYTHONUNBUFFERED: "1"
CONDA_ROOT: "${CI_PROJECT_DIR}/miniconda" CONDA_ROOT: "${CI_PROJECT_DIR}/miniconda"
BOOTSTRAP: "https://gitlab.idiap.ch/bob/bob.devtools/raw/master/bob/devtools/bootstrap.py" BOOTSTRAP: "https://gitlab.idiap.ch/bob/bob.devtools/raw/master/bob/devtools/bootstrap.py"
TORCH_HOME: "${CI_PROJECT_DIR}/torch" TORCH_HOME: "${CI_PROJECT_DIR}/.cache/torch"
PRE_COMMIT_HOME: "${CI_PROJECT_DIR}/.cache/pre-commit"
# Definition of our build pipeline order # Definition of our build pipeline order
...@@ -29,7 +30,8 @@ stages: ...@@ -29,7 +30,8 @@ stages:
cache: cache:
paths: paths:
- miniconda.sh - miniconda.sh
- torch - ${TORCH_HOME}
- ${PRE_COMMIT_HOME}
# Build targets # Build targets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment