forked from oracle/oci-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (40 loc) · 1.27 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
[pytest]
markers =
generated: Tests generated by codegen, which use data from the testing service.
long-running: Long running tests
[tox]
envlist = py27, py35
[testenv]
passenv = CLI_TESTS_ADMIN_PASS_PHRASE OCI_CLI* PYTHONHASHSEED RECORD_ONLY SKIP_BASIC_TESTS SUPPRESS_PYTHON2_WARNING ALLOW_JSON_TEST_FAILURES
deps = -r{toxinidir}/requirements.txt
setenv =
# Required so the oci script imports oci_cli from the venv
PYTHONPATH = {envsitepackagesdir}/oci_cli:
commands =
{toxinidir}/scripts/basic_cli_test_script.sh
py.test -s []
[testenv:unit]
setenv =
# Required so the oci script imports oci_cli from the venv
PYTHONPATH = {envsitepackagesdir}/oci_cli:
commands=
py.test -s tests/unit []
[testenv:generated_p35]
basepython = python3.5
setenv =
# Required so the oci script imports oci_cli from the venv
PYTHONPATH = {envsitepackagesdir}/oci_cli:
commands=
py.test -s [] --junitxml=result.xml
[testenv:generated_p27]
basepython = python2.7
setenv =
# Required so the oci script imports oci_cli from the venv
PYTHONPATH = {envsitepackagesdir}/oci_cli:
commands=
py.test -s []
[testenv:flake8]
basepython = python3.5
deps = flake8 == 3.6.0
commands =
flake8 --ignore=F841,E501,W503 src services tests scripts/install/install.py