Update project maturity status
[multicloud/azure.git] / azure / aria / aria-extension-cloudify / src / aria / tox.ini.bkp
1 # Licensed under the Apache License, Version 2.0 (the "License");
2 # you may not use this file except in compliance with the License.
3 # You may obtain a copy of the License at
4 #
5 # http://www.apache.org/licenses/LICENSE-2.0
6 #
7 # Unless required by applicable law or agreed to in writing, software
8 # distributed under the License is distributed on an "AS IS" BASIS,
9 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 # See the License for the specific language governing permissions and
11 # limitations under the License.
12
13 [tox]
14 envlist=py27,py26,py27e2e,py26e2e,pywin,py27ssh,pylint_code,pylint_tests,docs
15 processes={env:PYTEST_PROCESSES:auto}
16 py26={env:PY26:python2.6}
17
18 [testenv]
19 whitelist_externals=
20   rm
21 passenv=
22   TRAVIS
23   PYTHON
24   PYTHON_VERSION
25   PYTHON_ARCH
26 deps=
27   --requirement
28     requirements.txt
29   --requirement
30     tests/requirements.txt
31 basepython=
32   py26: {[tox]py26}
33   py27: python2.7
34   py26e2e: {[tox]py26}
35   py27e2e: python2.7
36   py26ssh: {[tox]py26}
37   py27ssh: python2.7
38   pywin: {env:PYTHON:}\python.exe
39   pylint_code: python2.7
40   pylint_tests: python2.7
41   docs: python2.7
42
43 [testenv:py27]
44 commands=
45   pytest tests \
46     --numprocesses={[tox]processes} \
47     --ignore=tests/end2end \
48     --ignore=tests/orchestrator/execution_plugin/test_ssh.py \
49     --cov-report term-missing \
50     --cov aria
51
52 [testenv:py26]
53 commands=
54   pytest tests \
55     --numprocesses={[tox]processes} \
56     --ignore=tests/end2end \
57     --ignore=tests/orchestrator/execution_plugin/test_ssh.py \
58     --cov-report term-missing \
59     --cov aria
60
61 [testenv:py27e2e]
62 commands=
63   pytest tests/end2end \
64     --numprocesses={[tox]processes} \
65     --cov-report term-missing \
66     --cov aria
67
68 [testenv:py26e2e]
69 commands=
70   pytest tests/end2end \
71     --numprocesses={[tox]processes} \
72     --cov-report term-missing \
73     --cov aria
74
75 [testenv:pywin]
76 commands=
77   pytest tests \
78     --numprocesses={[tox]processes} \
79     --ignore=tests/end2end \
80     --ignore=tests/orchestrator/execution_plugin/test_ssh.py \
81     --cov-report term-missing \
82     --cov aria
83
84 [testenv:py27ssh]
85 install_command=
86   pip install {opts} {packages} .[ssh]
87 commands=
88   pytest tests/orchestrator/execution_plugin/test_ssh.py \
89     --numprocesses={[tox]processes}
90
91 [testenv:py26ssh]
92 install_command=
93   pip install {opts} {packages} .[ssh]
94 commands=
95   pytest tests/orchestrator/execution_plugin/test_ssh.py \
96   --numprocesses={[tox]processes}
97
98 [testenv:pylint_code]
99 commands=
100   pylint aria extensions/aria_extension_tosca/ \
101     --rcfile=aria/.pylintrc \
102     --disable=fixme,missing-docstring
103
104 [testenv:pylint_tests]
105 commands=
106   pylint tests \
107     --rcfile=tests/.pylintrc \
108     --disable=fixme,missing-docstring
109
110 [testenv:docs]
111 install_command=
112   pip install {opts} {packages} \
113     --requirement docs/requirements.txt
114 commands=
115   rm --recursive --force docs/html
116   sphinx-build -W -T -b html docs docs/html