summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 4f4617ac05cd1d316fcced92857485f1499c778e (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
[tox]
minversion = 2.0
envlist = py3,pep8
skipdist = True

[testenv]
basepython = python3
sitepackages = False
usedevelop = True
install_command = pip install -U {opts} {packages} -c{env:CONSTRAINTS_FILE:/dev/null}
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/test-requirements.txt

[testenv:venv]
commands = {posargs}

[testenv:docs]
commands = sphinx-build -W -b html doc/source doc/build/html

[testenv:linters]
commands = {toxinidir}/tests/linters.sh

[testenv:py3]
commands = ara-manage test ara
setenv =
  ARA_DEBUG=true
  ARA_LOG_LEVEL=DEBUG
  ARA_BASE_DIR={toxinidir}/.tox/py3/tmp/ara

[testenv:runserver]
commands =
  ara-manage migrate
  ara-manage collectstatic --clear --no-input
  ara-manage runserver
setenv =
  ARA_DEBUG=true
  ARA_LOG_LEVEL=DEBUG
  ARA_BASE_DIR={toxinidir}/.tox/runserver/tmp/ara

[testenv:cover]
commands =
    coverage erase
    coverage run {toxinidir}/ara/server/__main__.py test ara/server
    coverage run -a {toxinidir}/ara/server/__main__.py test ara/api
    coverage html