[tox]
envlist = py26
          py27
          py33
          py34
          py35
          pypy
          flake8
          cover
          language_ar
          language_de
          language_el
          language_es
          language_fr
          language_it
          language_nl
          language_pt_BR

[testenv]
deps =
    nose
commands = nosetests
           handroll -v build sample

[testenv:flake8]
deps =
    flake8
commands = flake8 handroll setup.py transifex.py

[testenv:cover]
setenv =
    CI = true
passenv = TRAVIS*
deps =
    nose
    codecov
commands = nosetests --with-coverage --cover-package=handroll
           codecov

# Test that each language's strings contain no errors.
[testenv:language_ar]
setenv = LANGUAGE=ar
commands = nosetests

[testenv:language_de]
setenv = LANGUAGE=de
commands = nosetests

[testenv:language_el]
setenv = LANGUAGE=el
commands = nosetests

[testenv:language_es]
setenv = LANGUAGE=es
commands = nosetests

[testenv:language_fr]
setenv = LANGUAGE=fr
commands = nosetests

[testenv:language_it]
setenv = LANGUAGE=it
commands = nosetests

[testenv:language_nl]
setenv = LANGUAGE=nl
commands = nosetests

[testenv:language_pt_BR]
setenv = LANGUAGE=pt_BR
commands = nosetests

[tox]
envlist = py26
          py27
          py33
          py34
          py35
          pypy
          flake8
          cover
          language_ar
          language_de
          language_el
          language_es
          language_fr
          language_it
          language_nl
          language_pt_BR

[testenv]
deps =
    Babel
    nose
commands = nosetests
           handroll -v build sample

[testenv:flake8]
deps =
    Babel
    flake8
commands = flake8 handroll setup.py transifex.py

[testenv:cover]
setenv =
    CI = true
passenv = TRAVIS*
deps =
    Babel
    nose
    codecov
commands = nosetests --with-coverage --cover-package=handroll
           codecov

# Test that each language's strings contain no errors.
[testenv:language_ar]
setenv = LANGUAGE=ar
commands = nosetests

[testenv:language_de]
setenv = LANGUAGE=de
commands = nosetests

[testenv:language_el]
setenv = LANGUAGE=el
commands = nosetests

[testenv:language_es]
setenv = LANGUAGE=es
commands = nosetests

[testenv:language_fr]
setenv = LANGUAGE=fr
commands = nosetests

[testenv:language_it]
setenv = LANGUAGE=it
commands = nosetests

[testenv:language_nl]
setenv = LANGUAGE=nl
commands = nosetests

[testenv:language_pt_BR]
setenv = LANGUAGE=pt_BR
commands = nosetests

Test environments also require Babel.
Test environments also require Babel.
