Run the tests as part of the Dockerfile build.
This commit is contained in:
parent
4b8217d4ad
commit
d1992a2c3c
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Reference in a new issue