36 lines
991 B
YAML
36 lines
991 B
YAML
pipeline:
|
|
backend:
|
|
image: python
|
|
environment:
|
|
- DATABSE_URL=postgres://postgres:password@database:5432/postgres
|
|
- EMAIL_URL=smtp://admin:password@smtp:10025
|
|
- HOSTEA_INFRA_HOSTEA_REPO_REMOTE=ssh://git@gitea:22/hostea/
|
|
- HOSTEA_META_GITEA_INSTANCE=http://gitea:3000
|
|
commands:
|
|
- export HOSTEA_INFRA_HOSTEA_REPO_SSH_KEY="$(realpath ./tests/fleet-deploy-key)"
|
|
- pip install virtualenv
|
|
- make env
|
|
- make lint
|
|
- make coverage
|
|
# - make integration-test
|
|
secrets: [ STRIPE_PUBLIC_KEY, STRIPE_SECRET_KEY ]
|
|
|
|
services:
|
|
database:
|
|
image: postgres
|
|
environment:
|
|
- POSTGRES_PASSWORD=password
|
|
|
|
gitea:
|
|
image: gitea/gitea:1.16.5
|
|
container_name: hostea-dash-gitea
|
|
|
|
smtp:
|
|
image: maildev/maildev:latest
|
|
container_name: hostea-dash-maildev
|
|
environment:
|
|
- MAILDEV_SMTP_PORT=10025
|
|
- MAILDEV_WEB_PORT=1080
|
|
- MAILDEV_INCOMING_USER=admin
|
|
- MAILDEV_INCOMING_PASS=password
|