Run the tests as part of the Dockerfile build.

This commit is contained in:
jakedt 2014-04-14 11:40:17 -04:00
parent 4b8217d4ad
commit d1992a2c3c

View file

@ -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