~lazr-developers/lazr.authentication/trunk

« back to all changes in this revision

Viewing changes to tox.ini

  • Committer: Colin Watson
  • Date: 2018-04-28 19:11:28 UTC
  • mto: This revision was merged to the branch mainline in revision 54.
  • Revision ID: cjwatson@canonical.com-20180428191128-1en5gmoatifq00dy
Add tox testing support and drop buildout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[tox]
 
2
envlist =
 
3
    py27,docs
 
4
 
 
5
[testenv]
 
6
deps =
 
7
    .[test]
 
8
commands =
 
9
    zope-testrunner --test-path src --tests-pattern ^tests {posargs}
 
10
 
 
11
# This is needed until we port to oauthlib.  It means that this environment
 
12
# will only work on Debian or derivatives with python3-oauth (which has had
 
13
# 2to3 run over it) installed, so it isn't yet in envlist.
 
14
[testenv:py36]
 
15
sitepackages = True
 
16
 
 
17
[lint]
 
18
deps =
 
19
    pylint
 
20
commands =
 
21
    pylint --rcfile=pylint.rc src/lazr/authentication/
 
22
 
 
23
# This has too many failures to be enabled by default as yet.
 
24
[testenv:lint-py27]
 
25
basepython = python2.7
 
26
skip_install = true
 
27
deps = {[lint]deps}
 
28
commands = {[lint]commands}
 
29
 
 
30
[testenv:docs]
 
31
basepython = python2.7
 
32
deps =
 
33
    .[docs]
 
34
commands =
 
35
    sphinx-build -b html -d src/lazr/authentication/docs/_build/doctrees src/lazr/authentication/docs src/lazr/authentication/docs/_build/html