[tox]
envlist = py27,py35,lint,smoke_test

[testenv]
deps=
    py
    pytest
    pytest-mock
    pyyaml
    six
commands=
    pytest tests.py

[testenv:lint]
deps=
    flake8
commands=
    flake8 .

[testenv:smoke_test]
whitelist_externals=sh
deps=
    shyaml
commands=
    generate_build_config output.yaml
    sh -c \'shyaml get-type runcmd < output.yaml \'

[tox]
envlist = py27,py35,lint,smoke_test

[testenv]
deps=
    py
    pytest
    pytest-mock
    pyyaml
    six
commands=
    pytest tests.py

[testenv:lint]
deps=
    flake8
commands=
    flake8 --exclude .svn,CVS,.bzr,.hg,.git,__pycache__,.tox,.eggs,*.egg,parts,prime,stage .

[testenv:smoke_test]
whitelist_externals=sh
deps=
    shyaml
commands=
    generate_build_config output.yaml
    sh -c \'shyaml get-type runcmd < output.yaml \'

Exclude snap-related directories from flake8 checks
Exclude snap-related directories from flake8 checks

We see a lot of failures because all of our dependencies are in there.
We also have to pull in the default exclude list, else it gets overriden
by our specific excludes.
