-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
63 lines (52 loc) · 1.45 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
[tox]
envlist = py{37,38}-postgres{12,11,10}
skip_missing_interpreters = true
ignore_basepython_conflict = true
[default]
python = python3.7
postgresql = 11-alpine
[testenv:default]
basepython = {[default]python}
setenv =
PYTEST_ADDOPTS=--pg-image postgres:{[default]postgresql}
[testenv:clean]
commands = coverage erase
[testenv]
setenv =
postgres12: PYTEST_ADDOPTS=--pg-image postgres:12-alpine
postgres11: PYTEST_ADDOPTS=--pg-image postgres:11-alpine
postgres10: PYTEST_ADDOPTS=--pg-image postgres:10-alpine
postgres9: PYTEST_ADDOPTS=--pg-image postgres:9-alpine
commands = pytest --verbose {posargs:./tests}
deps =
git+https://github.com/nicfit/pytest-postgres.git
-r{toxinidir}/requirements.txt
-r{toxinidir}/requirements/test.txt
[testenv:coverage]
basepython = {[default]python}
setenv =
PYTEST_ADDOPTS=--pg-image postgres:{[default]postgresql}
commands =
coverage run --rcfile=setup.cfg --source ./mishmash -m \
pytest {posargs:--verbose ./test}
coverage report --rcfile=setup.cfg
coverage html --rcfile=setup.cfg
[testenv:requirements]
skipsdist = true
skip_install = true
deps =
nicfit.py[requirements]
pip-tools
commands =
nicfit requirements
pip-compile -U requirements.txt -o ./requirements.txt
[testenv:lint]
deps =
flake8
skipsdist = true
skip_install = true
commands = flake8 --builtins=_ ./mishmash
[testenv:check-manifest]
deps =
check-manifest
commands = check-manifest