From b9a4894fb63c7e12f1faac23b07b3db293b26f4a Mon Sep 17 00:00:00 2001 From: Gleb Boushev <4c74356b41@outlook.com> Date: Wed, 20 Jan 2021 16:17:57 +0300 Subject: [PATCH] dockerfile for pytest --- .gitignore | 1 + pytest/Dockerfile | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 pytest/Dockerfile diff --git a/.gitignore b/.gitignore index 436f23c7c..83e4a229f 100644 --- a/.gitignore +++ b/.gitignore @@ -144,6 +144,7 @@ docker/nightly*log # nightlies with pytest pytest/* +!pytest/Dockerfile !pytest/conftest.py !pytest/test_*.py !pytest/helpers diff --git a/pytest/Dockerfile b/pytest/Dockerfile new file mode 100644 index 000000000..c2cbe5ab1 --- /dev/null +++ b/pytest/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.8 +WORKDIR /ci + +RUN apt update && apt install vim -y && rm -rf /var/lib/apt/lists/* +RUN pip3 install requests xlsxwriter pandas pytest + +COPY wlan-lanforge-scripts/py-json/LANforge /ci/LANforge +COPY wlan-lanforge-scripts/py-json/realm.py /ci +COPY wlan-lanforge-scripts/py-json/generic_cx.py /ci +COPY wlan-lanforge-scripts/py-scripts/sta_connect2.py /ci +COPY wlan-testing/pytest/conftest.py /ci +COPY wlan-testing/pytest/test* /ci +COPY wlan-testing/pytest/pytest.ini /ci +COPY wlan-testing/pytest/helpers /ci/helpers + +ENTRYPOINT [ "pytest" ]