forked from StackStorm/st2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
107 lines (102 loc) · 7.43 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
105
106
107
[tox]
envlist = py36-unit,py36-integration
skipsdist = true
skip_missing_interpreters=true
[testenv]
setenv = PYTHONPATH = {toxinidir}/external
VIRTUALENV_DIR = {envdir}
passenv = NOSE_WITH_TIMER TRAVIS
install_command = pip install -U --force-reinstall {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-e{toxinidir}/st2tests
-e{toxinidir}/st2actions
-e{toxinidir}/st2api
-e{toxinidir}/st2auth
-e{toxinidir}/st2client
-e{toxinidir}/st2common
-e{toxinidir}/st2reactor
# Python 3 tasks
[testenv:py36-unit]
basepython = python3.6
setenv = PYTHONPATH = {toxinidir}/external:{toxinidir}/st2common:{toxinidir}/st2api:{toxinidir}/st2actions:{toxinidir}/st2exporter:{toxinidir}/st2reactor:{toxinidir}/st2tests:{toxinidir}/contrib/runners/action_chain_runner:{toxinidir}/contrib/runners/local_runner:{toxinidir}/contrib/runners/python_runner:{toxinidir}/contrib/runners/http_runner:{toxinidir}/contrib/runners/noop_runner:{toxinidir}/contrib/runners/announcement_runner:{toxinidir}/contrib/runners/remote_runner:{toxinidir}/contrib/runners/remote_runner:{toxinidir}/contrib/runners/mistral_v2:{toxinidir}/contrib/runners/orquesta_runner:{toxinidir}/contrib/runners/inquirer_runner:{toxinidir}/contrib/runners/http_runner:{toxinidir}/contrib/runners/winrm_runner
VIRTUALENV_DIR = {envdir}
passenv = NOSE_WITH_TIMER TRAVIS
install_command = pip install -U --force-reinstall {opts} {packages}
deps = virtualenv
-r{toxinidir}/requirements.txt
-e{toxinidir}/st2client
-e{toxinidir}/st2common
commands =
nosetests --rednose --immediate -sv st2actions/tests/unit/
nosetests --rednose --immediate -sv st2auth/tests/unit/
nosetests --rednose --immediate -sv st2api/tests/unit/controllers/v1/
nosetests --rednose --immediate -sv st2api/tests/unit/controllers/exp/
nosetests --rednose --immediate -sv st2common/tests/unit/
nosetests --rednose --immediate -sv st2client/tests/unit/
nosetests --rednose --immediate -sv st2debug/tests/unit/
nosetests --rednose --immediate -sv st2exporter/tests/unit/
nosetests --rednose --immediate -sv st2reactor/tests/unit/
nosetests --rednose --immediate -sv st2stream/tests/unit/
nosetests --rednose --immediate -sv contrib/runners/action_chain_runner/tests/unit/
nosetests --rednose --immediate -sv contrib/runners/inquirer_runner/tests/unit/
nosetests --rednose --immediate -sv contrib/runners/announcement_runner/tests/unit/
nosetests --rednose --immediate -sv contrib/runners/http_runner/tests/unit/
nosetests --rednose --immediate -sv contrib/runners/noop_runner/tests/unit/
nosetests --rednose --immediate -sv contrib/runners/local_runner/tests/unit/
nosetests --rednose --immediate -sv contrib/runners/orquesta_runner/tests/unit/
nosetests --rednose --immediate -sv contrib/runners/python_runner/tests/unit/
nosetests --rednose --immediate -sv contrib/runners/winrm_runner/tests/unit/
[testenv:py36-unit-nightly]
basepython = python3.6
setenv = PYTHONPATH = {toxinidir}/external:{toxinidir}/st2common:{toxinidir}/st2api:{toxinidir}/st2actions:{toxinidir}/st2exporter:{toxinidir}/st2reactor:{toxinidir}/st2tests:{toxinidir}/contrib/runners/action_chain_runner:{toxinidir}/contrib/runners/local_runner:{toxinidir}/contrib/runners/python_runner:{toxinidir}/contrib/runners/http_runner:{toxinidir}/contrib/runners/noop_runner:{toxinidir}/contrib/runners/announcement_runner:{toxinidir}/contrib/runners/remote_runner:{toxinidir}/contrib/runners/remote_runner:{toxinidir}/contrib/runners/mistral_v2:{toxinidir}/contrib/runners/orquesta_runner:{toxinidir}/contrib/runners/inquirer_runner:{toxinidir}/contrib/runners/http_runner:{toxinidir}/contrib/runners/winrm_runner
VIRTUALENV_DIR = {envdir}
passenv = NOSE_WITH_TIMER TRAVIS
install_command = pip install -U --force-reinstall {opts} {packages}
deps = virtualenv
-r{toxinidir}/requirements.txt
-e{toxinidir}/st2client
-e{toxinidir}/st2common
commands =
nosetests --rednose --immediate -sv contrib/runners/mistral_v2/tests/unit/
[testenv:py36-packs]
basepython = python3.6
setenv = PYTHONPATH = {toxinidir}/external:{toxinidir}/st2common:{toxinidir}/st2api:{toxinidir}/st2actions:{toxinidir}/st2exporter:{toxinidir}/st2reactor:{toxinidir}/st2tests:{toxinidir}/contrib/runners/action_chain_runner:{toxinidir}/contrib/runners/local_runner:{toxinidir}/contrib/runners/python_runner:{toxinidir}/contrib/runners/http_runner:{toxinidir}/contrib/runners/noop_runner:{toxinidir}/contrib/runners/announcement_runner:{toxinidir}/contrib/runners/remote_runner:{toxinidir}/contrib/runners/remote_runner:{toxinidir}/contrib/runners/mistral_v2:{toxinidir}/contrib/runners/orquesta_runner:{toxinidir}/contrib/runners/inquirer_runner:{toxinidir}/contrib/runners/http_runner:{toxinidir}/contrib/runners/winrm_runner
VIRTUALENV_DIR = {envdir}
passenv = NOSE_WITH_TIMER TRAVIS
install_command = pip install -U --force-reinstall {opts} {packages}
deps = virtualenv
-r{toxinidir}/requirements.txt
-e{toxinidir}/st2client
-e{toxinidir}/st2common
commands =
st2-run-pack-tests -c -t -x -p contrib/packs
st2-run-pack-tests -c -t -x -p contrib/core
st2-run-pack-tests -c -t -x -p contrib/default
st2-run-pack-tests -c -t -x -p contrib/chatops
st2-run-pack-tests -c -t -x -p contrib/examples
st2-run-pack-tests -c -t -x -p contrib/linux
st2-run-pack-tests -c -t -x -p contrib/hello_st2
[testenv:py36-integration]
basepython = python3.6
setenv = PYTHONPATH = {toxinidir}/external:{toxinidir}/st2common:{toxinidir}/st2auth:{toxinidir}/st2api:{toxinidir}/st2actions:{toxinidir}/st2exporter:{toxinidir}/st2reactor:{toxinidir}/st2tests:{toxinidir}/contrib/runners/action_chain_runner:{toxinidir}/contrib/runners/local_runner:{toxinidir}/contrib/runners/python_runner:{toxinidir}/contrib/runners/http_runner:{toxinidir}/contrib/runners/noop_runner:{toxinidir}/contrib/runners/announcement_runner:{toxinidir}/contrib/runners/remote_runner:{toxinidir}/contrib/runners/remote_runner:{toxinidir}/contrib/runners/mistral_v2:{toxinidir}/contrib/runners/orquesta_runner:{toxinidir}/contrib/runners/inquirer_runner:{toxinidir}/contrib/runners/http_runner:{toxinidir}/contrib/runners/winrm_runner
VIRTUALENV_DIR = {envdir}
passenv = NOSE_WITH_TIMER TRAVIS
install_command = pip install -U --force-reinstall {opts} {packages}
deps = virtualenv
-r{toxinidir}/requirements.txt
-e{toxinidir}/st2client
-e{toxinidir}/st2common
commands =
nosetests --rednose --immediate -sv --exe st2actions/tests/integration/
nosetests --rednose --immediate -sv --exe st2api/tests/integration/
nosetests --rednose --immediate -sv --exe st2common/tests/integration/
nosetests --rednose --immediate -sv --exe st2debug/tests/integration/
nosetests --rednose --immediate -sv --exe st2exporter/tests/integration/
nosetests --rednose --immediate -sv --exe st2reactor/tests/integration/
nosetests --rednose --immediate -sv --exe contrib/runners/action_chain_runner/tests/integration/
nosetests --rednose --immediate -sv --exe contrib/runners/local_runner/tests/integration/
nosetests --rednose --immediate -sv --exe contrib/runners/mistral_v2/tests/integration/
nosetests --rednose --immediate -sv --exe contrib/runners/orquesta_runner/tests/integration/
nosetests --rednose --immediate -sv --exe st2tests/integration/orquesta/
nosetests --rednose --immediate -sv --exe contrib/runners/python_runner/tests/integration/