~wesley-wiedenmeier/curtin/install-kernel

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
[tox]
minversion = 1.6
skipsdist = True
envlist = py27, py34, flake8, py34-pylint, py27-pylint

[tox:jenkins]
downloadcache = ~/cache/pip

[testenv]
usedevelop = True
# LC_ALL see https://github.com/gabrielfalcao/HTTPretty/issues/223
setenv = VIRTUAL_ENV={envdir}
    LC_ALL = en_US.utf-8
deps = -r{toxinidir}/test-requirements.txt
    -r{toxinidir}/requirements.txt
commands = {envpython} {toxinidir}/tools/noproxy nosetests {posargs} tests/unittests

# tox uses '--pre' by default to pip install.  We don't want that, and
# 'pip_pre=False' isn't available until tox version 1.9.
install_command = pip install {opts} {packages}

[testenv:flake8]
deps = {[testenv]deps}
    flake8
commands = flake8 {posargs}

[testenv:py34-pylint]
# set basepython because tox 1.6 (trusty) does not support generated environments
basepython = python3.4
deps = {[testenv]deps}
    pylint
commands = {envpython} -m pylint --errors-only {posargs:curtin tests/vmtests}

[testenv:py27-pylint]
# set basepython because tox 1.6 (trusty) does not support generated environments
basepython = python2.7
deps = {[testenv]deps}
    pylint
commands = {envpython} -m pylint --errors-only {posargs:curtin}

[testenv:docs]
deps = {[testenv]deps}
    sphinx
commands =
    sphinx-build -b html -d doc/_build/doctrees doc/ doc/_build/html

[flake8]
builtins = _
exclude = .venv,.bzr,.tox,dist,doc,*lib/python*,*egg,build