# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27, py35, py36, flake8, py37
# py32 does not work because of the 'wrapt' dependency
# py33 is not supported by newer versions of numpy

[testenv]
deps =
    -rdev-requirements.txt
commands =
    pytest \
        {posargs} # substitute with tox' positional arguments

[testenv:flake8]
basepython = python
deps =
    -rrequirements.txt
    flake8
    pep8-naming
    mccabe
    # flake8-docstrings  # deactivated because it currently fails with:
    # AttributeError: 'module' object has no attribute 'PEP257Checker'

commands =
    flake8 --max-complexity 10 sacred

[testenv:coverage]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
basepython = python
deps =
    -rdev-requirements.txt
    pytest-cov
    coveralls

commands =
    pytest \
        --cov sacred \
        {posargs}
    coveralls || echo "coveralls upload failed"

# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.

[tox]
envlist = py27, py35, py36, flake8, py37
# py32 does not work because of the 'wrapt' dependency
# py33 is not supported by newer versions of numpy

[testenv]
changedir =
    tests
deps =
    -rdev-requirements.txt
commands =
    pytest \
        {posargs} # substitute with tox' positional arguments

[testenv:flake8]
basepython = python
deps =
    -rrequirements.txt
    flake8
    pep8-naming
    mccabe
    # flake8-docstrings  # deactivated because it currently fails with:
    # AttributeError: 'module' object has no attribute 'PEP257Checker'

commands =
    flake8 --max-complexity 10 sacred

[testenv:coverage]
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
basepython = python
changedir =
    tests
deps =
    -rdev-requirements.txt
    pytest-cov
    coveralls

commands =
    pytest \
        --cov sacred \
        {posargs}
    coveralls || echo "coveralls upload failed"

Change dir to try to fix error
Change dir to try to fix error
