<commit_before>[tox]
envlist = py{27,34,35},pep8,apiexamples,cover,api-ref,releasenotes,bandit,fakemodetests,pylint
minversion = 1.6
skipsdist = True

[testenv]
setenv = VIRTUAL_ENV={envdir}
         PYTHONWARNINGS=default::DeprecationWarning
         OS_TEST_PATH=./trove/tests/unittests
         OS_STDOUT_CAPTURE=1
         OS_STDERR_CAPTURE=1

usedevelop = True
install_command = pip install \
                  -c{env:TEST_UPPER_CONSTRAINTS_FILE:{toxinidir}/test-upper-constraints.txt} \
                  -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} \
                  -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = find ./trove -type f -name "*.pyc" -delete
           rm -f trove_test.sqlite
           stestr run --serial '{posargs}'
           stestr slowest
whitelist_externals = find
                      rm
                      bash

[tox:jenkins]
sitepackages = True

[testenv:pep8]
basepython = python3
commands =
    flake8
    doc8 {posargs}

[testenv:apiexamples]
basepython = python3
commands = {envpython} generate_examples.py

[testenv:fakemodetests]
basepython = python3
commands = {envpython} run_tests.py

[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}

[testenv:cover]
basepython = python3<commit_msg>Add python 3.6 unit test job<commit_after>[tox]
envlist = py{27,34,35,36},pep8,apiexamples,cover,api-ref,releasenotes,bandit,fakemodetests,pylint
minversion = 1.6
skipsdist = True

[testenv]
setenv = VIRTUAL_ENV={envdir}
         PYTHONWARNINGS=default::DeprecationWarning
         OS_TEST_PATH=./trove/tests/unittests
         OS_STDOUT_CAPTURE=1
         OS_STDERR_CAPTURE=1

usedevelop = True
install_command = pip install \
                  -c{env:TEST_UPPER_CONSTRAINTS_FILE:{toxinidir}/test-upper-constraints.txt} \
                  -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} \
                  -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = find ./trove -type f -name "*.pyc" -delete
           rm -f trove_test.sqlite
           stestr run --serial {posargs}
           stestr slowest
whitelist_externals = find
                      rm
                      bash

[tox:jenkins]
sitepackages = True

[testenv:pep8]
basepython = python3
commands =
    flake8
    doc8 {posargs}

[testenv:apiexamples]
basepython = python3
commands = {envpython} generate_examples.py

[testenv:fakemodetests]
basepython = python3
commands = {envpython} run_tests.py

[testenv:debug]
basepython = python3
commands = oslo_debug_helper {posargs}

[testenv:cover]
basepython = python3
{'fraction_non_alphanumeric': 0.10357142857142858, 'fraction_numerical': 0.015, 'mean_word_length': 3.125184094256259, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2412915', 'n_tokens_mistral': 1038, 'n_tokens_neox': 995, 'n_words': 162}