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

[ci] Run pre-commit on ci

parent 69b02709
No related branches found
No related tags found
No related merge requests found
Pipeline #52918 passed
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
variables: variables:
PYTHONUNBUFFERED: "1" PYTHONUNBUFFERED: "1"
CONDA_ROOT: "${CI_PROJECT_DIR}/miniconda" CONDA_ROOT: "${CI_PROJECT_DIR}/miniconda"
PRE_COMMIT_HOME: "${CI_PROJECT_DIR}/.cache/pre-commit"
# Definition of our build pipeline order # Definition of our build pipeline order
...@@ -19,6 +20,7 @@ stages: ...@@ -19,6 +20,7 @@ stages:
cache: cache:
paths: paths:
- miniconda.sh - miniconda.sh
- ${PRE_COMMIT_HOME}
build_linux: build_linux:
...@@ -35,6 +37,8 @@ build_linux: ...@@ -35,6 +37,8 @@ build_linux:
- python3 ./bob/devtools/bootstrap.py -vv build - python3 ./bob/devtools/bootstrap.py -vv build
- source ${CONDA_ROOT}/etc/profile.d/conda.sh - source ${CONDA_ROOT}/etc/profile.d/conda.sh
- conda activate base - conda activate base
- pip install pre-commit
- pre-commit run --all-files
- python3 ./bob/devtools/build.py -vv --twine-check - python3 ./bob/devtools/build.py -vv --twine-check
artifacts: artifacts:
paths: paths:
...@@ -57,6 +61,8 @@ build_macos_intel: ...@@ -57,6 +61,8 @@ build_macos_intel:
- python3 ./bob/devtools/bootstrap.py -vv build - python3 ./bob/devtools/bootstrap.py -vv build
- source ${CONDA_ROOT}/etc/profile.d/conda.sh - source ${CONDA_ROOT}/etc/profile.d/conda.sh
- conda activate base - conda activate base
- pip install pre-commit
- pre-commit run --all-files
- python3 ./bob/devtools/build.py -vv - python3 ./bob/devtools/build.py -vv
artifacts: artifacts:
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment