dockerfile for pytest

This commit is contained in:
Gleb Boushev
2021-01-20 16:17:57 +03:00
parent 59d2c8ff72
commit b9a4894fb6
2 changed files with 17 additions and 0 deletions

1
.gitignore vendored
View File

@@ -144,6 +144,7 @@ docker/nightly*log
# nightlies with pytest
pytest/*
!pytest/Dockerfile
!pytest/conftest.py
!pytest/test_*.py
!pytest/helpers

16
pytest/Dockerfile Normal file
View File

@@ -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" ]