Skip to content
Snippets Groups Projects
Commit 7cc29c30 authored by nguyed99's avatar nguyed99
Browse files

Update pipeline

parent 64c0cb47
Branches
No related tags found
No related merge requests found
Pipeline #58704 failed
...@@ -7,7 +7,7 @@ stages: ...@@ -7,7 +7,7 @@ stages:
- test-tasks - test-tasks
variables: variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry" POETRY_CACHE_DIR: "$CI_PROJECT_DIR/.cache/poetry"
cache: cache:
paths: paths:
...@@ -21,12 +21,16 @@ build-env: ...@@ -21,12 +21,16 @@ build-env:
- cd build/ - cd build/
- poetry config virtualenvs.in-project true - poetry config virtualenvs.in-project true
- poetry install --no-root - poetry install --no-root
- ls $PIP_CACHE_DIR - ls $POETRY_CACHE_DIR/cache
- ls $POETRY_CACHE_DIR/virtualenvs
format: format:
stage: format stage: format
script: script:
- export VIRTUALENV_NAME=$(ls $CI_PROJECT_DIR/build/.venv) - ls $POETRY_CACHE_DIR/cache
- ls $POETRY_CACHE_DIR/virtualenvs
- export VIRTUALENV_NAME=$(ls $PIP_CACHE_DIR/virtualenvs)
- source $CI_PROJECT_DIR/build/.venv/$VIRTUALENV_NAME/bin/activate - source $CI_PROJECT_DIR/build/.venv/$VIRTUALENV_NAME/bin/activate
- poetry run pre-commit install - poetry run pre-commit install
- poetry run yapf -i -r -p . - poetry run yapf -i -r -p .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment