"Fossies" - the Fresh Open Source Software Archive

Member "openstack-congress-11.0.0/tox.ini" (13 May 2020, 3235 Bytes) of package /linux/misc/openstack/openstack-congress-11.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) INI source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "tox.ini": 10.0.0_vs_11.0.0.

    1 [tox]
    2 minversion = 2.0
    3 skipsdist = True
    4 envlist = py37,py36,pep8,genpolicy
    5 
    6 [testenv]
    7 basepython = python3
    8 usedevelop = True
    9 
   10 install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -U {opts} {packages}
   11 whitelist_externals = find
   12                       rm
   13 setenv =
   14    VIRTUAL_ENV={envdir}
   15    LANG=en_US.UTF-8
   16    LANGUAGE=en_US
   17    LC_ALL=en_US.utf-8
   18 deps = -r{toxinidir}/requirements.txt
   19        -r{toxinidir}/test-requirements.txt
   20 commands =
   21  find . -type f -name "*.py[c|o]" -delete
   22  stestr run --slowest --concurrency=1 {posargs}
   23 
   24 [testenv:pep8]
   25 usedevelop = False
   26 deps =
   27 commands = {toxinidir}/tools/pip-install-single-req.sh test-requirements.txt hacking
   28            flake8
   29 
   30 [testenv:venv]
   31 commands = {posargs}
   32 
   33 [testenv:cover]
   34 setenv =
   35     PYTHON=coverage run --source congress --parallel-mode
   36 commands =
   37   coverage erase
   38   find . -type f -name "*.pyc" -delete
   39   stestr run '^(?!congress\.tests\.haht\.test_congress_haht.*){posargs}'
   40   coverage combine
   41   coverage html -d cover
   42   coverage xml -o cover/coverage.xml
   43   coverage report
   44 
   45 [testenv:debug]
   46 commands = oslo_debug_helper -t congress/tests {posargs}
   47 
   48 [testenv:bench]
   49 setenv =
   50    TEST_BENCHMARK=true
   51    VIRTUAL_ENV={envdir}
   52    LANG=en_US.UTF-8
   53    LANGUAGE=en_US
   54    LC_ALL=en_US.utf-8
   55 commands = stestr run --concurrency=1 'test_benchmark {posargs}'
   56            stestr slowest --all
   57 
   58 [flake8]
   59 show-source = True
   60 builtins = _
   61 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,*thirdparty/*,CongressLexer.py,CongressParser.py,contrib/*
   62 
   63 [testenv:genconfig]
   64 deps =
   65 commands = {toxinidir}/tools/pip-install-single-req.sh requirements.txt oslo.config
   66            oslo-config-generator --config-file=etc/congress-config-generator.conf
   67            oslo-config-generator --config-file=etc/congress-agent-config-generator.conf
   68 
   69 [testenv:genpolicy]
   70 commands = oslopolicy-sample-generator --config-file etc/congress-policy-generator.conf
   71 
   72 [testenv:docs]
   73 setenv = PYTHONHASHSEED=0
   74 deps = -r{toxinidir}/doc/requirements.txt
   75        -r{toxinidir}/requirements.txt
   76 commands = rm -rf doc/build doc/source/api
   77            sphinx-build -W --keep-going -b html doc/source doc/build/html
   78 
   79 [testenv:pdf-docs]
   80 envdir = {toxworkdir}/docs
   81 deps = {[testenv:docs]deps}
   82 whitelist_externals =
   83   make
   84 commands =
   85   sphinx-build -W --keep-going -b latex doc/source doc/build/pdf
   86   make -C doc/build/pdf
   87 
   88 [testenv:releasenotes]
   89 deps = -r{toxinidir}/doc/requirements.txt
   90 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html
   91 
   92 [testenv:bindep]
   93 # Do not install any requirements. We want this to be fast and work even if
   94 # system dependencies are missing, since it's used to tell you what system
   95 # dependencies are missing! This also means that bindep must be installed
   96 # separately, outside of the requirements files, and develop mode disabled
   97 # explicitly to avoid unnecessarily installing the checked-out repo too (this
   98 # further relies on "tox.skipsdist = True" above).
   99 deps = bindep
  100 commands = bindep test
  101 usedevelop = False
  102 
  103 [testenv:lower-constraints]
  104 deps =
  105   -c{toxinidir}/lower-constraints.txt
  106   -r{toxinidir}/test-requirements.txt
  107   -r{toxinidir}/requirements.txt