forked from spotify/luigi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
70 lines (59 loc) · 1.63 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
64
65
66
67
68
69
[tox]
envlist = {pep8,cdh,hdp,nonhdfs}
skipsdist = True
[testenv]
usedevelop = True
deps=
-r{toxinidir}/test/requirements.txt
py26: unittest2
coverage>=3.6,<3.999
coveralls
setenv =
cdh: HADOOP_DISTRO=cdh
cdh: HADOOP_HOME=/tmp/hadoop-cdh
hdp: HADOOP_DISTRO=hdp
hdp: HADOOP_HOME=/tmp/hadoop-hdp
cdh,hdp: NOSE_ATTR=minicluster
nonhdfs: NOSE_ATTR=!minicluster
LUIGI_CONFIG_PATH={toxinidir}/test/testconfig/client.cfg
commands =
cdh,hdp: {toxinidir}/scripts/ci/setup_hadoop_env.sh
coverage run test/runtests.py -v {posargs:}
coveralls
[testenv:pep8]
deps = pep8
commands = pep8 --ignore E501 luigi test examples bin
[testenv:autopep8]
deps = autopep8
commands = autopep8 --ignore E309,E501 -a -i -r luigi test examples bin
[testenv:isort]
deps = isort
commands = isort -w 120 -rc luigi test examples bin
[testenv:docs]
# Build documentation using sphinx.
# Call this using `tox -e docs`.
deps =
sqlalchemy
Sphinx
sphinx_rtd_theme
commands =
# build API docs
sphinx-apidoc -o doc/api -T luigi
# sync README.rst file
cp README.rst doc/README.rst
# github images are local
sed -i.orig 's@https://raw\.githubusercontent\.com/spotify/luigi/master/doc/@@g' doc/README.rst
# remove badges
sed -i.orig '/.. image::/d' doc/README.rst
sed -i.orig '/:target:/d' doc/README.rst
rm doc/README.rst.orig
# check URLs in docs
sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees doc doc/_build/linkcheck
# build HTML docs
sphinx-build -W -b html -d {envtmpdir}/doctrees doc doc/_build/html
# remove temporary README.rst
rm doc/README.rst
whitelist_externals =
cp
sed
rm