-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtox.ini
59 lines (52 loc) · 2.21 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
#
# Anomaly Detection Framework
# Copyright (C) 2018 Bluekiri BigData Team <[email protected]>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
[tox]
package=anomalydetection
envlist = flake8
dev
travis
[testenv:flake8]
passenv = *
deps = -rrequirements.txt
commands = flake8 --max-line-length=90 --exclude=lib,bin,var,bower_components --verbose
[testenv:py35]
passenv = *
deps = -rrequirements.txt
commands = docker-compose down
docker-compose up -d
sleep 10
nosetests test --with-coverage --cover-package=anomalydetection --cover-html --cover-html-dir=cover --cover-xml --cover-xml-file=coverage.xml --with-xunit --xunit-file=xunit.xml
docker-compose down
rm /tmp/anomdec-test.sqlite
[testenv:travis]
passenv = *
deps = -rrequirements.txt
commands = nosetests --tests test.unit,test.integration -x --with-coverage --cover-package=anomalydetection --cover-html --cover-html-dir=cover --cover-xml --cover-xml-file=unit-coverage.xml --with-xunit --xunit-file=xunit.xml -s -v --logging-level=ERROR --logging-clear-handlers
[testenv:dev]
passenv = *
deps = -rrequirements.txt
commands = nosetests --tests test.unit -x --with-coverage --cover-package=anomalydetection --cover-html --cover-html-dir=cover --cover-xml --cover-xml-file=unit-coverage.xml --with-xunit --xunit-file=xunit.xml -s -v --logging-level=DEBUG --logging-clear-handlers
[testenv:docs]
usedevelop=True
deps = -rrequirements.txt
sphinx
sphinx-autodoc-typehints
sphinx_rtd_theme
recommonmark
sphinx-markdown-tables
commands = sphinx-build -a docs/source/ docs/build/