also makes it use a .env.ci file that uses the correct host name
This commit is contained in:
parent
676bc7d4ea
commit
69ca3e4e8c
2 changed files with 11 additions and 1 deletions
4
.env.ci
Normal file
4
.env.ci
Normal file
|
@ -0,0 +1,4 @@
|
|||
DATABASE_URL=psql://teilchensammler:teilchensammler@database:5432/teilchensammler_test
|
||||
DEBUG=On
|
||||
SECRET_KEY=django-insecure-x=%#_wxu0h=d*m#seui9+mjh3vu7of8+4+gpwj@556.un0r1%.
|
||||
DEPLOYMENT=Test
|
|
@ -13,9 +13,15 @@ steps:
|
|||
environment:
|
||||
DJANGO_SETTINGS_MODULE: config.settings
|
||||
DEPLOYMENT: Test
|
||||
ENV_PATH: .env.test
|
||||
ENV_PATH: .env.ci
|
||||
commands:
|
||||
- python -m venv venv
|
||||
- /bin/bash -c "source venv/bin/activate"
|
||||
- python -m pip install --disable-pip-version-check -r requirements/test.txt
|
||||
- python -m pytest
|
||||
|
||||
services:
|
||||
- name: database
|
||||
image: postgres:17
|
||||
environment:
|
||||
POSTGRES_PASSWORD: teilchensammler
|
||||
|
|
Loading…
Add table
Reference in a new issue