Skip to content
Snippets Groups Projects
Verified Commit befb210f authored by Daniel Göbel's avatar Daniel Göbel
Browse files

Update .gitlab-ci.yml file to change into the right directory.

#4
parent b16cfb5e
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ image: python:3.10-slim
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
BASE_DIR: "$CI_PROJECT_DIR/ProxyAPI"
PYTHONPATH: "$CI_PROJECT_DIR/ProxyAPI"
cache:
paths:
......@@ -29,8 +30,9 @@ before_script:
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- python -m pip install -r $BASE_DIR/requirements.txt
- python -m pip install -r $BASE_DIR/requirements-dev.txt
- cd $BASE_DIR
- python -m pip install -r requirements.txt
- python -m pip install -r requirements-dev.txt
stages: # List of stages for jobs, and their order of execution
# - build
......@@ -53,7 +55,7 @@ unit-test-job: # This job runs in the test stage.
lint-test-job: # This job also runs in the test stage.
stage: test # It can run at the same time as unit-test-job (in parallel).
script:
- $BASE_DIR/scripts/lint.sh
- ./scripts/lint.sh
#deploy-job: # This job runs in the deploy stage.
# stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
......
......@@ -5,4 +5,4 @@ set -x
mypy app
black app --check
isort -c app
flake8
flake8 app
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment