forked from Hostea/dashboard
fix: mv test dependency services to woodpecker config file
parent
da318beb58
commit
3c33d10ca0
|
@ -5,7 +5,6 @@ pipeline:
|
||||||
- DATABSE_URL=postgres://postgres:password@database:5432/postgres
|
- DATABSE_URL=postgres://postgres:password@database:5432/postgres
|
||||||
- EMAIL_URL=smtp://admin:password@localhost:10025
|
- EMAIL_URL=smtp://admin:password@localhost:10025
|
||||||
commands:
|
commands:
|
||||||
- ( apt update && apt install -y docker-compose >&1 )> /dev/null
|
|
||||||
- pip install virtualenv
|
- pip install virtualenv
|
||||||
- make env
|
- make env
|
||||||
- make lint
|
- make lint
|
||||||
|
@ -19,3 +18,19 @@ services:
|
||||||
image: postgres
|
image: postgres
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=password
|
- 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
|
||||||
|
|
|
@ -125,11 +125,11 @@ SERVER_PID=""
|
||||||
setup_env() {
|
setup_env() {
|
||||||
nohup python manage.py runserver > /dev/null 2>&1 &
|
nohup python manage.py runserver > /dev/null 2>&1 &
|
||||||
SERVER_PID=$!
|
SERVER_PID=$!
|
||||||
docker-compose -f docker-compose-dev-deps.yml up --detach
|
#docker-compose -f docker-compose-dev-deps.yml up --detach
|
||||||
}
|
}
|
||||||
|
|
||||||
teardown_env() {
|
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
|
kill $SERVER_PID
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue