summaryrefslogtreecommitdiffstats
path: root/src/ceph-disk/tox.ini
blob: f835f409cb12669228dbe23eb246cb0edd6c4185 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[tox]
envlist = flake8,py27
skip_missing_interpreters = True

[testenv]
setenv =
       VIRTUAL_ENV={envdir}
       CEPH_DISK={envbindir}/coverage run --append --source=ceph_disk -- {envbindir}/ceph-disk
usedevelop = true
deps =
  {env:NO_INDEX:}
  --use-wheel
  --find-links=file://{toxinidir}/wheelhouse
  -r{toxinidir}/requirements.txt
  -r{toxinidir}/test-requirements.txt
  ../ceph-detect-init

[testenv:py27]
passenv = CEPH_ROOT CEPH_BIN CEPH_LIB CEPH_BUILD_VIRTUALENV
changedir = {env:CEPH_BUILD_DIR}
commands = coverage run --append --source=ceph_disk {envbindir}/py.test -vv {toxinidir}/tests/test_main.py
           coverage run --append --source=ceph_disk {envbindir}/py.test -vv {toxinidir}/tests/test_prepare.py
           {toxinidir}/tests/ceph-disk.sh
           coverage report --show-missing

[testenv:flake8]
commands = flake8 --ignore=H105,H405,E127 ceph_disk tests