From 01efeed44f7fb73b856c5c3338a90f86296088e4 Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 11 Feb 2019 12:06:36 -0800 Subject: [PATCH] Move dockerfile --- examples/docker/Dockerfile => Dockerfile | 2 +- run-tests.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) rename examples/docker/Dockerfile => Dockerfile (100%) 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/ $@