Change on onaptests_bench to run stability tests on sm env
[integration.git] / tox.ini
1 [tox]
2 minversion = 3.2.0
3 envlist = json,yaml,py,rst,md
4 skipsdist = true
5 requires = pip >= 8
6
7 [testenv]
8 basepython = python3.8
9 whitelist_externals =
10   git
11   bash
12 deps =
13   coala-bears
14   nodeenv
15
16 [testenv:json]
17 commands_pre =
18     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.json' > /tmp/.coalist_json"
19 commands =
20 # '\ ' at the end of command is needed for a case where above command returns empty list (it adds empty file
21 # parameter to '--files' opt
22     /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn json --files $(</tmp/.coalist_json) \ "
23
24 [testenv:yaml]
25 commands_pre =
26     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.yaml' '*.yml' > /tmp/.coalist_yaml"
27 commands =
28 # '\ ' at the end of command is needed for a case where above command returns empty list (it adds empty file
29 # parameter to '--files' opt
30     /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn yaml --files $(</tmp/.coalist_yaml) \ "
31
32 [testenv:py]
33 commands_pre =
34     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.py' > /tmp/.coalist_py"
35 commands =
36     /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn py --files $(</tmp/.coalist_py) \ "
37
38 [testenv:rst]
39 deps =
40     -r{toxinidir}/docs/requirements-docs.txt
41     -chttps://raw.githubusercontent.com/openstack/requirements/stable/yoga/upper-constraints.txt
42     -chttps://git.onap.org/doc/plain/etc/upper-constraints.onap.txt
43 commands =
44   sphinx-build -W -n -b html docs docs/build/html
45   sphinx-build -W -n -b linkcheck docs docs/build/linkcheck
46
47 [testenv:md]
48 commands_pre =
49     nodeenv -p --verbose
50     npm install --global remark-cli
51     /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.md' > /tmp/.coalist_md"
52 commands =
53     /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn md --files $(</tmp/.coalist_md) \ "