aboutsummaryrefslogtreecommitdiff
path: root/tox.ini
blob: 1d4eb976c26f333d22e40f2dc5d2389e5ad163b3 (plain)
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
[tox]
envlist = py36,py35,py34,py27,docs,lint
skip_missing_interpreters = True

[testenv]

commands =
    python --version
    py.test --pyargs ihatemoney.tests.tests

deps =
    -rdev-requirements.txt
    -rrequirements.txt

# To be sure we are importing ihatemoney pkg from pip-installed version
changedir = /tmp






[testenv:docs]
commands = sphinx-build -a -n -b html -d docs/_build/doctrees docs docs/_build/html
deps =
    -rdocs/requirements.txt
changedir = {toxinidir}

[testenv:lint]
commands = flake8 ihatemoney
deps =
    -rdev-requirements.txt
changedir = {toxinidir}

[flake8]
exclude = migrations
max_line_length = 100

[travis]
python =
  2.7: py27
  3.4: py34
  3.5: py35
  3.6: py36, docs, lint