This repository has been archived by the owner on Jul 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathtox.ini
104 lines (94 loc) · 2.67 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[tox]
envlist=core,extensions,e2e,windows,ssh,pylint_core,pylint_tests,docs
pytest_processes={env:CONCURRENCY:auto}
pylint_jobs={env:CONCURRENCY:0}
[testenv]
whitelist_externals=
rm
passenv=
TRAVIS
PYTHON
PYTHON_VERSION
PYTHON_ARCH
deps=
--requirement
requirements.txt
--requirement
tests/requirements.txt
basepython=
core: python2.7
extensions: python2.7
e2e: python2.7
ssh: python2.7
windows: {env:PYTHON:}\python.exe
pylint_core: python2.7
pylint_tests: python2.7
docs: python2.7
[testenv:core]
commands=
pytest tests \
--numprocesses={[tox]pytest_processes} \
--ignore=tests/end2end \
--ignore=tests/extensions \
--ignore=tests/orchestrator/execution_plugin/test_ssh.py \
--cov-report term-missing \
--cov aria
[testenv:extensions]
commands=
pytest tests/extensions \
--numprocesses={[tox]pytest_processes} \
--cov-report term-missing \
--cov extensions
[testenv:e2e]
commands=
pytest tests/end2end \
--numprocesses={[tox]pytest_processes} \
--cov-report term-missing \
--cov aria
[testenv:ssh]
install_command=
pip install {opts} {packages} .[ssh]
commands=
pytest tests/orchestrator/execution_plugin/test_ssh.py \
--numprocesses={[tox]pytest_processes}
[testenv:windows]
commands=
pytest tests \
--numprocesses={[tox]pytest_processes} \
--ignore=tests/end2end \
--ignore=tests/extensions \
--ignore=tests/orchestrator/execution_plugin/test_ssh.py \
--cov-report term-missing \
--cov aria
[testenv:pylint_core]
commands=
pylint aria extensions/aria_extension_tosca \
--rcfile=aria/.pylintrc \
--disable=fixme,missing-docstring
# Disabling due to bugs: https://github.com/PyCQA/pylint/issues/374
# --jobs={[tox]pylint_jobs}
[testenv:pylint_tests]
commands=
pylint tests \
--rcfile=tests/.pylintrc \
--disable=fixme,missing-docstring
# Disabling due to bugs: https://github.com/PyCQA/pylint/issues/374
# --jobs={[tox]pylint_jobs}
[testenv:docs]
install_command=
pip install {opts} {packages} \
--requirement docs/requirements.txt
commands=
rm --recursive --force docs/html
sphinx-build -W -T -b html docs docs/html