~openstack-charm-sync/charms/trusty/lxd/next

56 by James Page
Add basic tox configuration
1
[tox]
2
envlist = pep8,py27
3
skipsdist = True
4
5
[testenv]
6
setenv = VIRTUAL_ENV={envdir}
7
         PYTHONHASHSEED=0
8
install_command =
9
  pip install --allow-unverified python-apt {opts} {packages}
10
commands = ostestr {posargs}
11
12
[testenv:py27]
13
basepython = python2.7
14
deps = -r{toxinidir}/requirements.txt
15
       -r{toxinidir}/test-requirements.txt
16
17
[testenv:pep8]
18
basepython = python2.7
19
deps = -r{toxinidir}/requirements.txt
20
       -r{toxinidir}/test-requirements.txt
21
commands = flake8 {posargs} hooks unit_tests tests
22
           charm proof
23
24
[testenv:venv]
25
commands = {posargs}
26
27
[flake8]
28
ignore = E402,E226
29
exclude = hooks/charmhelpers