diff --git a/artel/.woodpecker/.build.yml b/artel/.woodpecker/.build.yml new file mode 100644 index 0000000..0985a65 --- /dev/null +++ b/artel/.woodpecker/.build.yml @@ -0,0 +1,22 @@ + +steps: + build: + image: debian + secrets: [] + commands: + - docker-compose -f artel/docker-compose-test.yml build + volumes: + - /var/run/docker.sock:/var/run/docker.sock + when: + event: pull_request + branch: ${CI_REPO_DEFAULT_BRANCH} + test: + image: debian + secrets: [] + commands: + - docker-compose -f artel/docker-compose-test.yml run --rm test_comfy + volumes: + - /var/run/docker.sock:/var/run/docker.sock + when: + event: pull_request + branch: ${CI_REPO_DEFAULT_BRANCH} diff --git a/artel/.woodpecker/.deploy.yml b/artel/.woodpecker/.deploy.yml new file mode 100644 index 0000000..e69de29 diff --git a/artel/artel/settings/tests.py b/artel/artel/settings/tests.py new file mode 100644 index 0000000..41c6b42 --- /dev/null +++ b/artel/artel/settings/tests.py @@ -0,0 +1,18 @@ +from .base import * + +# SECURITY WARNING: define the correct hosts in production! +ALLOWED_HOSTS = ["*"] + +EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +EMAIL_HOST = "smtp-server" +EMAIL_HOST_USER = None +EMAIL_HOST_PASSWORD = None +EMAIL_PORT = 1025 +EMAIL_USE_TLS = False +DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL', 'mtyton@tepewu.pl') + + +try: + from .local import * +except ImportError: + pass