[tox]
envlist = py27,docs

[testenv]
downloadcache = {toxworkdir}/download-cache
deps = 
  -r{toxinidir}/etc/deps-frozen.txt
  -r{toxinidir}/etc/deps-devel.txt

commands = 
  find . -name "*.pyc" -delete
  rm -f .coverage
  python setup.py clean
  py.test --cov abilian --cov-config etc/coverage.rc --cov-report term-missing ablian tests
  py.test -q --cov abilian --cov-report term-missing tests abilian
  coverage html --rcfile etc/coverage.rc

  # Needs some love. Later.
  #pep8 -r --ignore E111,E121,E201,E225,E501 *.py abilian tests

[testent:py27]
setenv = 
  SQLALCHEMY_DATABASE_URI = sqlite://

[testenv:py27_postgres]
setenv =
  SQLALCHEMY_DATABASE_URI = postgres://yaka_core_test:test_pw@localhost:5432/yaka_core_test

[testenv:docs]
commands =
  find . -name "*.pyc" -delete
  python setup.py clean
  sphinx-build -W -b html docs/ docs/_build/html

[tox]
envlist = py27,docs

[testenv]
downloadcache = {toxworkdir}/download-cache
deps = 
  -r{toxinidir}/etc/deps-frozen.txt
  -r{toxinidir}/etc/deps-devel.txt

commands = 
  find . -name "*.pyc" -delete
  rm -f .coverage
  python setup.py clean
  py.test --cov abilian --cov-config etc/coverage.rc --cov-report term-missing abilian tests
  py.test -q --cov abilian --cov-report term-missing tests abilian
  coverage html --rcfile etc/coverage.rc

  # Needs some love. Later.
  #pep8 -r --ignore E111,E121,E201,E225,E501 *.py abilian tests

[testent:py27]
setenv = 
  SQLALCHEMY_DATABASE_URI = sqlite://

[testenv:py27_postgres]
setenv =
  SQLALCHEMY_DATABASE_URI = postgres://yaka_core_test:test_pw@localhost:5432/yaka_core_test

[testenv:docs]
commands =
  find . -name "*.pyc" -delete
  python setup.py clean
  sphinx-build -W -b html docs/ docs/_build/html

Fix typo that broke the build
Fix typo that broke the build
