qemu-e2k/tests/docker
John Snow 6b9c277797 gitlab: add python linters to CI
Add a Python container that has just enough juice for us to run the
Python code quality analysis tools. Base this container on Fedora,
because Fedora has very convenient packaging for testing multiple Python
versions.

We need python3, pip (for pulling packages), pipenv and virtualenv for
creating virtual environments, and tox for running tests. make is needed
for running 'make check-tox' and 'make venv-check' targets. Python3.10
is needed explicitly because the tox package only pulls in 3.6-3.9, but
we wish to test the forthcoming release of Python as well to help
predict any problems. Lastly, we need gcc to compile PyPI packages that
may not have a binary distribution available.

Add two tests:

check-python-pipenv uses pipenv to test a frozen, very explicit set of
packages against our minimum supported python version, Python 3.6. This
test is not allowed to fail. The dependencies this test uses do not
change unless python/Pipfile.lock is changed.

check-python-tox uses tox to install the latest versions of required
python dependencies against a wide array of Python versions from 3.6 to
3.9, even including the yet-to-be-released Python 3.10. This test is
allowed to fail with a warning.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-id: 20210527211715.394144-32-jsnow@redhat.com
[Fix rebase conflict over .gitlab-ci.yml --js]
Signed-off-by: John Snow <jsnow@redhat.com>
2021-06-01 16:21:21 -04:00
..
dockerfiles gitlab: add python linters to CI 2021-06-01 16:21:21 -04:00
common.rc tests/docker: check for an parameters not empty string 2020-07-11 15:53:00 +01:00
docker.py tests/docker: add "fetch" sub-command 2021-05-18 09:35:39 +01:00
Makefile.include tests/docker: gcc-10 based images for ppc64{,le} tests 2021-05-18 09:36:21 +01:00
run tests/docker: avoid $SHELL invoke bash directly 2019-09-10 14:14:31 +01:00
test-block
test-build tests/docker: move DEF_TARGET_LIST setting to common.rc 2019-09-10 14:14:31 +01:00
test-clang tests/docker: only enable ubsan for test-clang 2019-10-04 18:49:19 +02:00
test-debug docker: test-debug: disable LeakSanitizer 2019-10-04 18:49:17 +02:00
test-full docker: move make check into check_qemu helper 2018-07-24 11:45:25 +01:00
test-mingw tests/docker: move DEF_TARGET_LIST setting to common.rc 2019-09-10 14:14:31 +01:00
test-misc tests/docker: add docs FEATURE flag and use for test-misc 2020-04-15 11:38:23 +01:00
test-quick tests/docker: move DEF_TARGET_LIST setting to common.rc 2019-09-10 14:14:31 +01:00
test-static tests/docker: add test script for static linux-user builds 2020-08-21 06:18:35 -04:00
test-tcg tests/docker: add a test-tcg for building then running check-tcg 2021-03-10 12:13:59 +00:00
test-tsan tests/docker: Added docker build support for TSan. 2020-06-16 14:49:05 +01:00
test-unit docker: add test-unit runner 2018-07-24 11:45:25 +01:00