forked from f3at/feat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
63 lines (58 loc) · 1.66 KB
/
tox.ini
File metadata and controls
63 lines (58 loc) · 1.66 KB
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 = py27-{test,security}
;skipsdist = true
skipsdist = {env:TOXBUILD:false}
skip_missing_interpreters = true
[testenv:build]
skipsdist = true
basepython = python2.7
envdir = {toxworkdir}/py27
deps = -r{toxinidir}/requirements_dev.txt
commands =
python setup.py sdist
python setup.py bdist_wheel
[testenv:build-dev]
skipsdist = true
basepython = python2.7
envdir = {toxworkdir}/py27
deps = -r{toxinidir}/requirements_dev.txt
commands =
bumpversion --allow-dirty dev
python setup.py sdist
python setup.py bdist_wheel
[testenv:build-rel]
skipsdist = true
basepython = python2.7
envdir = {toxworkdir}/py27
deps = -r{toxinidir}/requirements_dev.txt
commands =
bumpversion --allow-dirty patch
python setup.py sdist
python setup.py bdist_wheel
[testenv:publish]
skipsdist = true
basepython = python2.7
envdir = {toxworkdir}/py27
deps = -r{toxinidir}/requirements_dev.txt
commands =
twine upload -r getfinancing dist/*
[testenv]
envdir =
py27: {toxworkdir}/py27
setenv =
PYTHONPATH = {toxinidir}
deps =
-r{toxinidir}/requirements_dev.txt
; py27: -r{toxinidir}/requirements_legacy.txt
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following line:
-r{toxinidir}/requirements.txt
whitelist_externals = bash
commands =
pip install -U pip
security: safety check --full-report
security: - bash -c 'pip freeze | piprot -o -'
test: coverage run --source getfinancing -m pytest -l --basetemp={envtmpdir} --junit-prefix={envname} --junitxml=junit/junit-{envname}.xml
test: coverage report -m
test: coverage html
test: coverage xml