~openstack-charmers-archive/charms/trusty/ceph-osd/next

« back to all changes in this revision

Viewing changes to tox.ini

  • Committer: Corey Bryant
  • Date: 2015-11-02 21:37:33 UTC
  • mfrom: (52.1.4 ceph-osd)
  • Revision ID: corey.bryant@canonical.com-20151102213733-atr28zn03inrutp8
[james-pages,r=corey.bryant] Add tox support for lint and unit tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[tox]
 
2
envlist = lint,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:lint]
 
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