blob: 6bbe73f50c1ea5e3a81a8dbf4fbb761b842ee924 [file] [log] [blame]
Lusheng Ji88648fc2017-09-20 02:18:20 +00001# content of: tox.ini , put in same dir as setup.py
2[tox]
Tommy Carpenter426fd9d2018-03-12 11:29:33 -04003envlist = py27,py36,flake8
Lusheng Ji88648fc2017-09-20 02:18:20 +00004
5[testenv]
6deps=
Lusheng Ji88648fc2017-09-20 02:18:20 +00007 pytest
8 coverage
9 pytest-cov
Tommy Carpenter7b310082017-09-25 11:45:12 -040010setenv =
11 CONSUL_HOST = consuldotcom
12 HOSTNAME = mybestfrienddotcom
Andrew Gauld373f0f32018-02-21 11:14:46 -050013 PYTHONPATH={toxinidir}
Tommy Carpenter7b310082017-09-25 11:45:12 -040014
Andrew Gauld373f0f32018-02-21 11:14:46 -050015commands=
16 pytest --junitxml xunit-results.xml --cov onap_dcae_cbs_docker_client --cov-report xml
17 coverage xml
Tommy Carpenter426fd9d2018-03-12 11:29:33 -040018
19[testenv:flake8]
20basepython = python3.6
21skip_install = true
22deps = flake8
23commands = flake8 setup.py onap_dcae_cbs_docker_client tests
24
25[flake8]
26ignore = E501