Commit f40321bb authored by Štěpán Kotek's avatar Štěpán Kotek

add pytest to run code checks

parent a04f9660
......@@ -34,6 +34,16 @@ test:python2:pylint:
- linux
- amd64
test:python2:unittests:
image: cznic/deckard-ci
stage: test
script:
- make check PYTHON=python2
tags:
- docker
- linux
- amd64
test:python2:comparative:kresd:
image: cznic/deckard-ci
stage: test
......@@ -85,6 +95,16 @@ test:python3:pylint:
- linux
- amd64
test:python3:unittests:
image: cznic/deckard-ci
stage: test
script:
- make check PYTHON=python3
tags:
- docker
- linux
- amd64
test:python3:comparative:kresd:
image: cznic/deckard-ci
stage: test
......
......@@ -64,3 +64,7 @@ $(libcwrap): $(libcwrap_cmake_DIR)/Makefile
.PHONY: submodules depend all
check:
@echo Running unittests using pytest
${PYTHON} -m pytest
\ No newline at end of file
......@@ -14,8 +14,8 @@ RUN apt-get upgrade -y
RUN apt-get install -y knot-resolver
RUN apt-get install -y unbound
RUN apt-get install -y pdns-recursor
RUN apt-get install -y python-augeas python-pep8 pylint python-pip python-jinja2 python-yaml
RUN apt-get install -y python3-augeas python3-pep8 pylint3 python3-pip python3-jinja2 python3-yaml
RUN apt-get install -y python-augeas python-pep8 pylint python-pip python-jinja2 python-yaml python-pytest
RUN apt-get install -y python3-augeas python3-pep8 pylint3 python3-pip python3-jinja2 python3-yaml python3-pytest
# version of dnspython in Ubuntu repository is f**ked up
RUN pip install --upgrade dnspython
RUN pip3 install --upgrade dnspython
......
......@@ -2,3 +2,4 @@ dnspython>=1.15
Jinja2>=2.8
PyYAML
python-augeas
pytest
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment