"Fossies" - the Fresh Open Source Software Archive

Member "masakari-9.0.0/tox.ini" (13 May 2020, 3650 Bytes) of package /linux/misc/openstack/masakari-9.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": 8.0.0_vs_9.0.0.

    1 [tox]
    2 minversion = 3.1.1
    3 envlist = pep8,py36,py37
    4 skipsdist = True
    5 ignore_basepython_conflict = True
    6 
    7 [testenv]
    8 basepython = python3
    9 usedevelop = True
   10 setenv = VIRTUAL_ENV={envdir}
   11          LANGUAGE=en_US
   12          LC_ALL=en_US.utf-8
   13 deps =
   14    -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
   15    -r{toxinidir}/requirements.txt
   16    -r{toxinidir}/test-requirements.txt
   17 whitelist_externals = bash
   18                       find
   19                       rm
   20                       env
   21 # By default stestr will set concurrency
   22 # to ncpu, to specify something else use
   23 # the concurrency=<n> option.
   24 # call ie: 'tox -epy27 -- --concurrency=4'
   25 commands =
   26   find . -type f -name "*.pyc" -delete
   27 passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY OS_DEBUG GENERATE_HASHES
   28 
   29 [testenv:py36]
   30 basepython = python3.6
   31 commands =
   32     {[testenv]commands}
   33     stestr run {posargs}
   34 
   35 [testenv:py37]
   36 basepython = python3.7
   37 commands =
   38     {[testenv]commands}
   39     stestr run {posargs}
   40 
   41 [testenv:functional]
   42 commands =
   43   {[testenv]commands}
   44   stestr --test-path=./masakari/tests/functional run --concurrency=1 --slowest {posargs}
   45 
   46 [testenv:genconfig]
   47 commands = oslo-config-generator --config-file=etc/masakari/masakari-config-generator.conf
   48        oslo-config-generator --config-file=etc/masakari/masakari-customized-recovery-flow-config-generator.conf
   49 
   50 [testenv:genpolicy]
   51 commands = oslopolicy-sample-generator --config-file=etc/masakari/masakari-policy-generator.conf
   52 
   53 [testenv:pep8]
   54 commands = flake8 {posargs}
   55 
   56 [testenv:venv]
   57 commands = {posargs}
   58 
   59 [testenv:cover]
   60 setenv =
   61     VIRTUAL_ENV={envdir}
   62     PYTHON=coverage run --source masakari --parallel-mode
   63 commands =
   64     stestr run {posargs}
   65     coverage combine
   66     coverage html -d cover
   67     coverage xml -o cover/coverage.xml
   68 
   69 [testenv:docs]
   70 deps = -r{toxinidir}/doc/requirements.txt
   71 commands =
   72   sphinx-build -W -b html doc/source doc/build/html
   73 
   74 [testenv:releasenotes]
   75 deps = -r{toxinidir}/doc/requirements.txt
   76 commands =
   77   rm -fr releasenotes/build
   78   sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
   79 
   80 [testenv:debug]
   81 basepython = python3
   82 commands = oslo_debug_helper {posargs}
   83 
   84 [testenv:api-ref]
   85 # This environment is called from CI scripts to test and publish
   86 # the API Ref to docs.openstack.org.
   87 commands =
   88   rm -rf api-ref/build
   89   sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
   90 
   91 [flake8]
   92 # E123, E125 skipped as they are invalid PEP-8.
   93 
   94 show-source = True
   95 
   96 # The below hacking rules by default are disabled should be enabled:
   97 # [H106] Don't put vim configuration in source files.
   98 # [H203] Use assertIs(Not)None to check for None.
   99 # [H904] Delay string interpolations at logging calls.
  100 enable-extensions = H106,H203,H904
  101 ignore = E123,E125,E128,E731,H405
  102 builtins = _
  103 exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
  104 
  105 [hacking]
  106 local-check-factory = masakari.hacking.checks.factory
  107 import_exceptions = masakari.i18n
  108 
  109 [testenv:lower-constraints]
  110 deps =
  111   -c{toxinidir}/lower-constraints.txt
  112   -r{toxinidir}/test-requirements.txt
  113   -r{toxinidir}/requirements.txt
  114 
  115 [testenv:bindep]
  116 # Do not install any requirements. We want this to be fast and work even if
  117 # system dependencies are missing, since it's used to tell you what system
  118 # dependencies are missing! This also means that bindep must be installed
  119 # separately, outside of the requirements files, and develop mode disabled
  120 # explicitly to avoid unnecessarily installing the checked-out repo too (this
  121 # further relies on "tox.skipsdist = True" above).
  122 deps = bindep
  123 commands = bindep test
  124 usedevelop = False