forked from release-depot/git_wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
33 lines (28 loc) · 1.15 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
[tox]
envlist = py27, py36, py37, flake8
[testenv]
passenv=HOME
sitepackages = False
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
pytest --cov-report=term-missing --cov=git_wrapper tests
[testenv:flake8]
passenv=HOME
sitepackages = False
commands =
flake8 --ignore=E501 setup.py docs git_wrapper tests integration_tests
[testenv:integration]
commands =
/usr/bin/find . -name '*.pyc' -delete # Avoid issues with pytests conf file discovery
/usr/bin/sudo docker build -t git_wrapper_integration_tests .
/usr/bin/sudo docker run git_wrapper_integration_tests /bin/sh -c "pytest -k integration_tests integration_tests" # Ensure we only run the integration tests
[testenv:integration_podman]
commands =
/usr/bin/find . -name '*.pyc' -delete # Avoid issues with pytests conf file discovery
/usr/bin/podman build -t git_wrapper_integration_tests .
/usr/bin/podman run git_wrapper_integration_tests /bin/sh -c "pytest -k integration_tests integration_tests" # Ensure we only run the integration tests
[testenv:twine]
commands =
python setup.py sdist bdist_wheel
twine check --strict dist/*