]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/tox.ini
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / pybind / mgr / dashboard / tox.ini
CommitLineData
11fdf7f2 1[tox]
92f5a8d4 2envlist = py27-{cov,lint,run,check},py3-{cov,lint,run,check}
11fdf7f2
TL
3skipsdist = true
4toxworkdir = {env:CEPH_BUILD_DIR}/dashboard
5minversion = 2.8.1
6
7[testenv]
8setenv=
9 CFLAGS = -DXMLSEC_NO_SIZE_T
10 UNITTEST = true
11 WEBTEST_INTERACTIVE = false
12 LD_LIBRARY_PATH = {toxinidir}/../../../../build/lib
13 PATH = {toxinidir}/../../../../build/bin:$PATH
14 py27: PYTHONPATH = {toxinidir}/../../../../build/lib/cython_modules/lib.2
15 py3: PYTHONPATH = {toxinidir}/../../../../build/lib/cython_modules/lib.3
16 cov: UNITTEST = true
17 cov: COVERAGE_FILE = .coverage.{envname}
18commands=
19 pip install -r {toxinidir}/requirements.txt
20 py27: pip install -r {toxinidir}/requirements-py27.txt
21 py3: pip install -r {toxinidir}/requirements-py3.txt
22 cov: coverage erase
eafe8130 23 cov: {envbindir}/py.test --cov=. --cov-report= --junitxml=junit.{envname}.xml --doctest-modules controllers services/ tests/ tools.py
11fdf7f2
TL
24 cov: coverage combine {toxinidir}/{env:COVERAGE_FILE}
25 cov: coverage report
26 cov: coverage xml
92f5a8d4 27 lint: pylint --rcfile=.pylintrc --jobs=5 . module.py tools.py controllers tests services exceptions.py grafana.py ci/check_grafana_uids.py
11fdf7f2 28 lint: pycodestyle --max-line-length=100 --exclude=.tox,venv,frontend,.vscode --ignore=E402,E121,E123,E126,E226,E24,E704,W503,E741 .
92f5a8d4 29 check: python ci/check_grafana_uids.py frontend/src/app ../../../../monitoring/grafana/dashboards
11fdf7f2 30 run: {posargs}