forked from openstack-archive/fuel-ostf
-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
52 lines (45 loc) · 1.51 KB
/
tox.ini
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
minversion = 1.6
envlist = py26,py27,pep8
skipsdist = True
[testenv]
usedevelop = True
whitelist_externals = bash
setenv = VIRTUAL_ENV={envdir}
OSTF_CI_CONF={toxinidir}/etc/tools/ostf_ci.conf
OSTF_LOGS={toxinidir}/ostf
OSTF_DB=ostf
OSTF_DB_USER=ostf
OSTF_DB_PW=ostf
OSTF_DB_ROOT=postgres
OSTF_DB_ROOTPW=insecure_slave
OSTF_DB_ROOTPGPASS={toxinidir}/pgpass
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
deps = -r{toxinidir}/test-requirements.txt
commands =
/bin/bash "{toxinidir}/etc/tools/prepare_settings.sh"
/bin/bash "{toxinidir}/etc/tools/prepare_database.sh"
ostf-server --config-file {toxinidir}/etc/tools/ostf_ci.conf --after-initialization-environment-hook
nosetests {posargs:fuel_plugin/testing/tests/unit}
nosetests {posargs:fuel_plugin/testing/tests/integration}
[testenv:cover]
setenv = NOSE_WITH_COVERAGE=1
[testenv:venv]
deps = -r{toxinidir}/requirements.txt
commands = {posargs:}
[testenv:pep8]
deps = hacking==0.7
usedevelop = False
commands =
flake8 {posargs}
[flake8]
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,__init__.py,docs
show-pep8 = True
show-source = True
count = True
[hacking]
import_exceptions = testtools.matchers