fix: mv test dependency services to woodpecker config file

wip-infra-tests
Aravinth Manivannan 2022-06-23 21:24:21 +05:30
parent da318beb58
commit 3c33d10ca0
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 18 additions and 3 deletions

View File

@ -5,7 +5,6 @@ pipeline:
- DATABSE_URL=postgres://postgres:password@database:5432/postgres
- EMAIL_URL=smtp://admin:password@localhost:10025
commands:
- ( apt update && apt install -y docker-compose >&1 )> /dev/null
- pip install virtualenv
- make env
- make lint
@ -19,3 +18,19 @@ services:
image: postgres
environment:
- POSTGRES_PASSWORD=password
gitea:
image: gitea/gitea:1.16.5
container_name: hostea-dash-gitea
# network_mode: host
restart: always
smtp:
image: maildev/maildev:latest
restart: always
container_name: hostea-dash-maildev
# network_mode: host
environment:
- MAILDEV_SMTP_PORT=10025
- MAILDEV_INCOMING_USER=admin
- MAILDEV_INCOMING_PASS=password

View File

@ -125,11 +125,11 @@ SERVER_PID=""
setup_env() {
nohup python manage.py runserver > /dev/null 2>&1 &
SERVER_PID=$!
docker-compose -f docker-compose-dev-deps.yml up --detach
#docker-compose -f docker-compose-dev-deps.yml up --detach
}
teardown_env() {
docker-compose -f docker-compose-dev-deps.yml down --remove-orphans
#docker-compose -f docker-compose-dev-deps.yml down --remove-orphans
kill $SERVER_PID
}