From 483eb2f56657e8e7f419ab1a4fab8dce9ade8609 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 20:24:20 +0200 Subject: Adding upstream version 14.2.21. Signed-off-by: Daniel Baumann --- src/pybind/mgr/dashboard/tox.ini | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/pybind/mgr/dashboard/tox.ini (limited to 'src/pybind/mgr/dashboard/tox.ini') diff --git a/src/pybind/mgr/dashboard/tox.ini b/src/pybind/mgr/dashboard/tox.ini new file mode 100644 index 00000000..e9614a50 --- /dev/null +++ b/src/pybind/mgr/dashboard/tox.ini @@ -0,0 +1,30 @@ +[tox] +envlist = py27-{cov,lint,run,check},py3-{cov,lint,run,check} +skipsdist = true +toxworkdir = {env:CEPH_BUILD_DIR}/dashboard +minversion = 2.8.1 + +[testenv] +setenv= + CFLAGS = -DXMLSEC_NO_SIZE_T + UNITTEST = true + WEBTEST_INTERACTIVE = false + LD_LIBRARY_PATH = {toxinidir}/../../../../build/lib + PATH = {toxinidir}/../../../../build/bin:{env:PATH} + py27: PYTHONPATH = {env:CEPH_LIB}/cython_modules/lib.2 + py3: PYTHONPATH = {env:CEPH_LIB}/cython_modules/lib.3 + cov: UNITTEST = true + cov: COVERAGE_FILE = .coverage.{envname} +commands= + pip install -r {toxinidir}/requirements.txt + py27: pip install -r {toxinidir}/requirements-py27.txt + py3: pip install -r {toxinidir}/requirements-py3.txt + cov: coverage erase + cov: {envbindir}/py.test --cov=. --cov-report= --junitxml=junit.{envname}.xml --doctest-modules controllers services/ tests/ tools.py + cov: coverage combine {toxinidir}/{env:COVERAGE_FILE} + cov: coverage report + cov: coverage xml + lint: pylint --rcfile=.pylintrc --jobs=5 . module.py tools.py controllers tests services exceptions.py grafana.py ci/check_grafana_uids.py + lint: pycodestyle --max-line-length=100 --exclude=.tox,venv,frontend,.vscode --ignore=E402,E121,E123,E126,E226,E24,E704,W503,E741 . + check: python ci/check_grafana_uids.py frontend/src/app ../../../../monitoring/grafana/dashboards + run: {posargs} -- cgit v1.2.3