From c1a22bd815fc9f36abec46c102c5e322441ecc45 Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Thu, 24 Jan 2019 08:19:37 -0500 Subject: [PATCH] Run tests as part of the docker build --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index d3ff3226..ce3c0b9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,10 @@ COPY . /doccano WORKDIR /doccano +RUN ["/venv/bin/python", "app/manage.py", "migrate"] +RUN ["/venv/bin/python", "app/manage.py", "collectstatic"] +RUN ["/venv/bin/python", "app/manage.py", "test", "server.tests"] + ENV DEBUG="True" ENV SECRET_KEY="change-me-in-production"