diff --git a/examples/docker/Dockerfile b/Dockerfile similarity index 100% rename from examples/docker/Dockerfile rename to Dockerfile index b3add31..67ad8e1 100644 --- a/examples/docker/Dockerfile +++ b/Dockerfile @@ -10,7 +10,6 @@ COPY ./requirements.txt /requirements.txt RUN pip3 install -r /requirements.txt - COPY ./ /tmp/pyircbot RUN cd /tmp/pyircbot && \ python3 setup.py install @@ -19,3 +18,4 @@ ENTRYPOINT ["/usr/local/bin/pyircbot"] WORKDIR /srv/bot/ CMD ["-c", "config.json"] USER bot + diff --git a/run-tests.sh b/run-tests.sh index a2f0da7..07607b3 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -3,4 +3,7 @@ export PYTHONUNBUFFERED=1 export PYTHONPATH=. +find pyircbot tests -name '*.pyc' -delete +find pyircbot tests -name __pycache__ -exec rm -rf {} \; + py.test --cov=pyircbot --cov-report html -n 4 tests/ $@