Lusheng Ji | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 1 | # content of: tox.ini , put in same dir as setup.py |
| 2 | [tox] |
Michal Jagiello | c3b0629 | 2020-08-13 06:51:23 +0000 | [diff] [blame] | 3 | envlist = py36,flake8,py38 |
Lusheng Ji | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 4 | |
| 5 | [testenv] |
| 6 | deps= |
Lusheng Ji | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 7 | pytest |
| 8 | coverage |
| 9 | pytest-cov |
Tommy Carpenter | 7b31008 | 2017-09-25 11:45:12 -0400 | [diff] [blame] | 10 | setenv = |
Tommy Carpenter | 1474cbb | 2019-06-24 15:52:59 +0000 | [diff] [blame] | 11 | HOSTNAME = testhostname |
| 12 | CONFIG_BINDING_SERVICE = config-binding-service |
Andrew Gauld | 373f0f3 | 2018-02-21 11:14:46 -0500 | [diff] [blame] | 13 | PYTHONPATH={toxinidir} |
Tommy Carpenter | 7b31008 | 2017-09-25 11:45:12 -0400 | [diff] [blame] | 14 | |
Andrew Gauld | 373f0f3 | 2018-02-21 11:14:46 -0500 | [diff] [blame] | 15 | commands= |
| 16 | pytest --junitxml xunit-results.xml --cov onap_dcae_cbs_docker_client --cov-report xml |
| 17 | coverage xml |
Tommy Carpenter | 426fd9d | 2018-03-12 11:29:33 -0400 | [diff] [blame] | 18 | |
| 19 | [testenv:flake8] |
| 20 | basepython = python3.6 |
| 21 | skip_install = true |
| 22 | deps = flake8 |
| 23 | commands = flake8 setup.py onap_dcae_cbs_docker_client tests |
| 24 | |
| 25 | [flake8] |
| 26 | ignore = E501 |