summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 6d0e5c194193afce6212559d0a430296a3b4dd34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = py37,py38

[testenv]
deps=
    -rrequirements.txt
    pytest
    coverage
    pytest-cov
setenv =
    CBS_HTBT_JSON={toxinidir}/etc/config.json
    PYTHONPATH = {toxinidir}/miss_htbt_service
recreate = True
commands=
    {envbindir}/python setup.py install
    mkdir -p /tmp/opt/app/miss_htbt_service/logs/
    mkdir -p /tmp/opt/app/miss_htbt_service/tmp/
    mkdir -p /tmp/opt/app/miss_htbt_service/etc/
    mkdir -p /tmp/opt/app/miss_htbt_service/data/
    pytest --junitxml xunit-results.xml --cov miss_htbt_service --cov-report xml --cov-report term tests --verbose
whitelist_externals = mkdir