Update .gitlab-ci.yml file
This commit is contained in:
1 parent
5969e70e89
commit
35d4334627
1 file changed
+9
-4
+9
-4
@@ -1,21 +1,26 @@
|
|||||||
|
variables:
|
||||||
|
PIP_CACHE_DIR: "${CI_PROJECT_DIR}/.cache/pip"
|
||||||
|
|
||||||
default:
|
default:
|
||||||
image: nikolaik/python-nodejs:python3.9-nodejs16
|
image: nikolaik/python-nodejs:python3.9-nodejs16
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- ~/.cache/pip/
|
- .cache/pip
|
||||||
|
- .venv
|
||||||
before_script:
|
before_script:
|
||||||
|
- poetry config settings.virtualenvs.in-project true
|
||||||
- poetry install
|
- poetry install
|
||||||
|
|
||||||
django-migrations:
|
django-migrations:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- python3 manage.py migrate
|
- poetry run python manage.py migrate
|
||||||
- python3 manage.py check
|
- poetry run python manage.py check
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- pytest -v
|
- poetry run pytest -v
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|||||||
Reference in new issue
Block a user