Add docker support for local unit testing

Addresses consistency across different OS's by making it very similar to
the base Travis image.
This commit is contained in:
Eli Uriegas 2017-03-28 22:33:55 -05:00
parent a09471ac6c
commit 8ba1b5fc35
2 changed files with 10 additions and 0 deletions

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM python:3.6
ADD . /app
WORKDIR /app
RUN pip install tox

4
Makefile Normal file
View File

@ -0,0 +1,4 @@
test:
find . -name "*.pyc" -delete
docker build -t sanic/test-image .
docker run -t sanic/test-image tox