diff options
Diffstat (limited to 'moon_pythonunittest')
-rw-r--r-- | moon_pythonunittest/Dockerfile | 8 | ||||
-rw-r--r-- | moon_pythonunittest/README.md | 8 | ||||
-rw-r--r-- | moon_pythonunittest/requirements.txt | 11 | ||||
-rw-r--r-- | moon_pythonunittest/run_tests.sh | 19 |
4 files changed, 0 insertions, 46 deletions
diff --git a/moon_pythonunittest/Dockerfile b/moon_pythonunittest/Dockerfile deleted file mode 100644 index b8fb5151..00000000 --- a/moon_pythonunittest/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM python:3 - -RUN pip install pytest requests_mock requests --upgrade -ADD requirements.txt /root -RUN pip install -r /root/requirements.txt --upgrade - -ADD run_tests.sh /root -CMD ["sh", "/root/run_tests.sh"]
\ No newline at end of file diff --git a/moon_pythonunittest/README.md b/moon_pythonunittest/README.md deleted file mode 100644 index 45d3a988..00000000 --- a/moon_pythonunittest/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# Python Unit Test Docker - -## Build -- `docker image build -t wukongsun/moon_python_unit_test .` - -## Push to DockerHub -- `docker login --username=wukongsun` -- `docker image push wukongsun/moon_python_unit_test`
\ No newline at end of file diff --git a/moon_pythonunittest/requirements.txt b/moon_pythonunittest/requirements.txt deleted file mode 100644 index fe107293..00000000 --- a/moon_pythonunittest/requirements.txt +++ /dev/null @@ -1,11 +0,0 @@ -kombu !=4.0.1,!=4.0.0 -oslo.messaging -oslo.config -oslo.log -vine -werkzeug -flask -requests -pytest -pytest-cov -requests_mock diff --git a/moon_pythonunittest/run_tests.sh b/moon_pythonunittest/run_tests.sh deleted file mode 100644 index 285bd856..00000000 --- a/moon_pythonunittest/run_tests.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -cd /data -pip3 install -r tests/unit_python/requirements.txt --upgrade -pip3 install . - -if [ -d /data/dist ]; -then - pip install /data/dist/*.tar.gz --upgrade - pip install /data/dist/*.whl --upgrade -fi - -if [ -f /data/tests/unit_python/run_tests.sh ]; -then - bash /data/tests/unit_python/run_tests.sh; -fi - -cd /data/tests/unit_python -pytest --cov --cov-report term --cov-report html --cov-report xml . |