[tox]
envlist=mypy,py35,py36,lint

[testenv]
deps=
    -rtest-requirements.txt
commands=
    pytest --cov=jenkins_job_linter

[testenv:lint]
deps=
    flake8
    isort
commands=
    flake8 jenkins_job_linter
    isort --diff --recursive --check jenkins_job_linter

[testenv:mypy]
deps=
    mypy
commands=
    mypy jenkins_job_linter

[testenv:codecov]
# Upload coverage report to codecov.io; only intended for Travis use
passenv = CI TRAVIS TRAVIS_*
deps=
    -rtest-requirements.txt
    codecov
commands=
    pytest --cov=jenkins_job_linter
    codecov

[tox]
envlist=mypy,py35,py36,lint

[testenv]
deps=
    -rtest-requirements.txt
commands=
    pytest --cov=jenkins_job_linter

[testenv:lint]
deps=
    flake8
    isort
    -rtest-requirements.txt
commands=
    flake8 jenkins_job_linter
    isort --diff --recursive --check jenkins_job_linter

[testenv:mypy]
deps=
    mypy
commands=
    mypy jenkins_job_linter

[testenv:codecov]
# Upload coverage report to codecov.io; only intended for Travis use
passenv = CI TRAVIS TRAVIS_*
deps=
    -rtest-requirements.txt
    codecov
commands=
    pytest --cov=jenkins_job_linter
    codecov

Install test-requirements.txt in lint environment
Install test-requirements.txt in lint environment

If we don't, then isort detects pytest as a first-party module (not a
third-party module).
