-
Notifications
You must be signed in to change notification settings - Fork 185
/
tox.ini
41 lines (36 loc) · 1.13 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
[pytest]
markers =
generated: Tests generated by codegen, which use data from the testing service.
long-running: Long running tests
[tox]
envlist = py36
[testenv]
passenv = CLI_TESTS_ADMIN_PASS_PHRASE OCI_CLI* PYTHONHASHSEED RECORD_ONLY SKIP_BASIC_TESTS SUPPRESS_PYTHON2_WARNING ALLOW_JSON_TEST_FAILURES OCI_PYSDK_USING_EXPECT_HEADER
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_p36]
basepython = python3.6
setenv =
# Required so the oci script imports oci_cli from the venv
PYTHONPATH = {envsitepackagesdir}/oci_cli:
commands=
py.test -s [] --junitxml=result.xml
[testenv:flake8]
basepython = python3.6
deps =
flake8 == 3.6.0
pip == 20.2.4
commands =
flake8 --ignore=F841,E501,W503,W292 src services tests scripts/install/install.py