blob: 9a773b6f2858f7535e25f55a597455b082e81bbc (
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
|
# Copyright 2017 Canonical Ltd.
# Licensed under the LGPLv3, see LICENCE file for details.
[tox]
envlist = lint, py27, py35, docs
# envlist = py27
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/macaroonbakery
# drop into debugger with: nosetests --pdb
# coverage with --with-coverage --cover-inclusive --cover-html
commands =
nosetests
deps =
-r{toxinidir}/test-requirements.txt
[testenv:devenv]
envdir = devenv
usedevelop = True
commands =
[testenv:lint]
usedevelop = True
commands = flake8 --ignore E501 --show-source macaroonbakery --exclude macaroonbakery/bakery/_internal/id_pb2.py
[testenv:docs]
changedir = docs
deps = sphinx
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|