forked from harvester/tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
37 lines (32 loc) · 929 Bytes
/
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
[tox]
envlist = py36,py38,pep8,testenv
# TODO(gyee): we are not distributing the test code right now. Will need
# to revisit this once we have majority of the tests developed.
skipsdist = True
[testenv]
basepython = python3
setenv =
VIRTUAL_ENV = {envdir}
PYTHONWARNINGS = ignore:Unverified HTTPS request
deps = pytest
-r{toxinidir}/test-requirements.txt
allowlist_externals = {toxinidir}/*
bash
find
commands =
{toxinidir}/terraform_test_artifacts/terraform_install.sh
find . -type f -name "*.pyc" -delete
pytest -c {env:PYTEST_CONFIG:{toxinidir}/tox.ini} {posargs}
passenv = http_proxy,HTTP_PROXY,https_proxy,HTTPS_PROXY,no_proxy,NO_PROXY,PBR_VERSION
[testenv:pep8]
deps = flake8
commands =
flake8
[flake8]
max-line-length = 99
[pytest]
initial_sort = original
render_collapsed = all
[testenv:py36]
setenv =
PYTEST_CONFIG = {toxinidir}/py36_pytest.ini