-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
48 lines (44 loc) · 1.26 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
[tox]
envlist=lint,{py27}-unit
skipsdist=true
[testenv]
update_dependencies=pip install --upgrade -r requirements.txt -r test-requirements.txt -e .
envdir=
py27: {toxworkdir}/py27
py36: {toxworkdir}/py36
setenv=
BOTO_CONFIG={toxinidir}/test/helpers/aws.config
AWS_CONFIG_FILE={toxinidir}/test/helpers/aws.config
AWS_PROFILE=unit_tests
SPOTINST_TOKEN=fake
DATADOG_API_KEY=false
DATADOG_APP_KEY=false
commands=
{[testenv]update_dependencies}
{py27,py36}-unit: nosetests --config=tox.ini --processes=-1 astroscaler test/unit
{py27,py36}-functional: nosetests --config=tox.ini astroscaler test/functional
{py27,py36}-integration: nosetests --config=tox.ini astroscaler test/integration
[testenv:lint]
basepython=python2.7
envdir={toxworkdir}/py27
commands=
{[testenv]update_dependencies}
pylint --rcfile=pylintrc --output-format=colorized astroscaler test
pycodestyle astroscaler test
[nosetests]
with-coverage=true
cover-package=astroscaler
cover-inclusive=true
cover-xml=true
cover-xml-file=reports/coverage.xml
stop=true
detailed-errors=true
verbosity=3
with-xunit=true
xunit-file=reports/nosetests.xml
with-doctest=true
doctest-options=+IGNORE_EXCEPTION_DETAIL
process-timeout=30
[pycodestyle]
max_line_length=110
ignore=E402