From d1992a2c3cd57a78ad697fd39d66df62837409e5 Mon Sep 17 00:00:00 2001 From: jakedt Date: Mon, 14 Apr 2014 11:40:17 -0400 Subject: [PATCH] Run the tests as part of the Dockerfile build. --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index daaf413b9..bc64a73f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,6 +32,7 @@ ADD workers workers ADD app.py app.py ADD application.py application.py ADD config.py config.py +ADD initdb.py initdb.py ADD conf/init/mklogsdir.sh /etc/my_init.d/ ADD conf/init/gunicorn.sh /etc/service/gunicorn/run @@ -39,6 +40,8 @@ ADD conf/init/nginx.sh /etc/service/nginx/run ADD conf/init/diffsworker.sh /etc/service/diffsworker/run ADD conf/init/webhookworker.sh /etc/service/webhookworker/run +RUN TEST=true venv/bin/python -m unittest discover + VOLUME ["/conf/stack", "/mnt/logs"] EXPOSE 443 80