<commit_before>[tox]
envlist = py27,py33,py34,py35,py36,docs,integration,acceptance

[testenv]
deps =
  -r{toxinidir}/requirements.txt
  cov-core
  coverage
  execnet
  pep8
  py
  pytest>=2.8.3
  pytest-cache
  pytest-cov
  pytest-pep8
  pytest-flakes
  mock
  freezegun
  pytest-blockage

passenv=CI TRAVIS* CONTINUOUS_INTEGRATION AWS* NO_REFRESH_DB SETTINGS_MODULE DB_CONNSTRING
setenv =
    TOXINIDIR={toxinidir}
    TOXDISTDIR={distdir}
sitepackages = False
whitelist_externals = env test

commands =
    python --version
    virtualenv --version
    pip --version
    pip freeze
    py.test -rxs -vv --durations=10 --pep8 --flakes --blockage -m "not integration and not acceptance" --cov-report term-missing --cov-report xml --cov-report html --cov-config {toxinidir}/.coveragerc --cov=biweeklybudget {posargs} biweeklybudget

# always recreate the venv
recreate = True

[testenv:docs]
# this really just makes sure README.rst will parse on pypi
passenv = {[testenv]passenv}
setenv =
    TOXINIDIR={toxinidir}
    TOXDISTDIR={distdir}
    CI=true
deps =
  -r{toxinidir}/requirements.txt
  docutils
  pygments
  sphinx
  sphinx_rtd_theme
basepython = python3.6
commands =
    python --version
    virtualenv --version
    pip --version
    pip freeze
    rst2html.py --halt=2 README.rst /dev/null
    sphinx-apidoc biweeklybudget biweeklybudget/tests -o {toxinidir}/docs/source -e -f -M
    # link check
    # -n runs in nit-picky mode
    # -W turns warnings into errors
    sphinx-build -a -n -W -b linkcheck {toxinidir}/docs/source {toxinidir}/docs/build/html
    # build
    sphinx-build -a -n -W -b html {toxinidir}/docs/source {toxinidir}/docs/build/html

[testenv:integration]
deps =
  -r{toxinidir}/requirements.txt
  execnet
  py
  pytest>=2.8.3
  pytest-cache
  mock
  freezegun
passenv = {[testenv]passenv}
setenv =
    TOXINIDIR={toxinidir}
    TOXDISTDIR={distdir}
basepython = python3.6
sitepackages = False
whitelist_externals = env test
commands =
    python --version
    virtualenv --version
    pip --version
    pip freeze
    py.test -rxs -vv --durations=10 -m "integration" biweeklybudget

[testenv:acceptance27]
deps =
  -r{toxinidir}/requirements.txt
  cov-core
  coverage
  execnet
  py
  pytest>=2.8.3
  pytest-cache
  pytest-cov
  mock
  freezegun
  pytest-flask
  pytest-selenium
passenv = {[testenv]passenv}
setenv =
    TOXINIDIR={toxinidir}
    TOXDISTDIR={distdir}
basepython = python3.6
sitepackages = False
whitelist_externals = env test
commands =
    python --version
    virtualenv --version
    pip --version
    pip freeze
    py.test -rxs -vv --durations=10 --driver PhantomJS --html=results/acceptance.html -m "acceptance" biweeklybudget

[testenv:acceptance36]
deps = {[testenv:acceptance27]deps}
passenv = {[testenv]passenv}
setenv = {[testenv:acceptance27]setenv}
basepython = python3.6
sitepackages = False
whitelist_externals = env test
commands = {[testenv:acceptance27]commands}<commit_msg>simplify tox setenv and passenv<commit_after>[tox]
envlist = py27,py33,py34,py35,py36,docs,integration,acceptance

[testenv]
deps =
  -r{toxinidir}/requirements.txt
  cov-core
  coverage
  execnet
  pep8
  py
  pytest>=2.8.3
  pytest-cache
  pytest-cov
  pytest-pep8
  pytest-flakes
  mock
  freezegun
  pytest-blockage

passenv=CI TRAVIS* CONTINUOUS_INTEGRATION AWS* NO_REFRESH_DB DB_CONNSTRING
setenv =
    TOXINIDIR={toxinidir}
    TOXDISTDIR={distdir}
    SETTINGS_MODULE=biweeklybudget.settings_example
    CI=true
sitepackages = False
whitelist_externals = env test

commands =
    python --version
    virtualenv --version
    pip --version
    pip freeze
    py.test -rxs -vv --durations=10 --pep8 --flakes --blockage -m "not integration and not acceptance" --cov-report term-missing --cov-report xml --cov-report html --cov-config {toxinidir}/.coveragerc --cov=biweeklybudget {posargs} biweeklybudget

# always recreate the venv
recreate = True

[testenv:docs]
# this really just makes sure README.rst will parse on pypi
passenv = {[testenv]passenv}
setenv = {[testenv]setenv}
deps =
  -r{toxinidir}/requirements.txt
  docutils
  pygments
  sphinx
  sphinx_rtd_theme
basepython = python3.6
commands =
    python --version
    virtualenv --version
    pip --version
    pip freeze
    rst2html.py --halt=2 README.rst /dev/null
    sphinx-apidoc biweeklybudget biweeklybudget/tests -o {toxinidir}/docs/source -e -f -M
    # link check
    # -n runs in nit-picky mode
    # -W turns warnings into errors
    sphinx-build -a -n -W -b linkcheck {toxinidir}/docs/source {toxinidir}/docs/build/html
    # build
    sphinx-build -a -n -W -b html {toxinidir}/docs/source {toxinidir}/docs/build/html

[testenv:integration]
deps =
  -r{toxinidir}/requirements.txt
  execnet
  py
  pytest>=2.8.3
  pytest-cache
  mock
  freezegun
passenv = {[testenv]passenv}
setenv = {[testenv]setenv}
basepython = python3.6
sitepackages = False
whitelist_externals = env test
commands =
    python --version
    virtualenv --version
    pip --version
    pip freeze
    py.test -rxs -vv --durations=10 -m "integration" biweeklybudget

[testenv:acceptance27]
deps =
  -r{toxinidir}/requirements.txt
  cov-core
  coverage
  execnet
  py
  pytest>=2.8.3
  pytest-cache
  pytest-cov
  mock
  freezegun
  pytest-flask
  pytest-selenium
passenv = {[testenv]passenv}
setenv = {[testenv]setenv}
basepython = python3.6
sitepackages = False
whitelist_externals = env test
commands =
    python --version
    virtualenv --version
    pip --version
    pip freeze
    py.test -rxs -vv --durations=10 --driver PhantomJS --html=results/acceptance.html -m "acceptance" biweeklybudget

[testenv:acceptance36]
deps = {[testenv:acceptance27]deps}
passenv = {[testenv]passenv}
setenv = {[testenv]setenv}
basepython = python3.6
sitepackages = False
whitelist_externals = env test
commands = {[testenv:acceptance27]commands}
{'fraction_non_alphanumeric': 0.1044955387783116, 'fraction_numerical': 0.016129032258064516, 'mean_word_length': 3.508120649651972, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2569831', 'n_tokens_mistral': 2272, 'n_tokens_neox': 2217, 'n_words': 492}