~smoser/curtin/yakkety.lp1666986

« back to all changes in this revision

Viewing changes to tox.ini

  • Committer: Scott Moser
  • Date: 2016-08-05 20:47:14 UTC
  • mto: (58.1.1 pkg)
  • mto: This revision was merged to the branch mainline in revision 56.
  • Revision ID: smoser@ubuntu.com-20160805204714-f6j1k61cli5uf614
Tags: upstream-0.1.0~bzr415
ImportĀ upstreamĀ versionĀ 0.1.0~bzr415

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
[tox]
2
2
minversion = 1.6
3
3
skipsdist = True
4
 
envlist = py27, py3, py3-flake8, py3-pylint, py27-pylint, trusty-check, coverage27, coverage3
 
4
envlist = py27, py3, py3-flake8, py3-pylint, py27-pylint, trusty-check
5
5
 
6
6
[tox:jenkins]
7
7
downloadcache = ~/cache/pip
13
13
    LC_ALL = en_US.utf-8
14
14
deps = -r{toxinidir}/test-requirements.txt
15
15
    -r{toxinidir}/requirements.txt
16
 
commands = {envpython} {toxinidir}/tools/noproxy nosetests {posargs} tests/unittests
 
16
commands = {envpython} {toxinidir}/tools/noproxy nosetests \
 
17
    {posargs:--with-coverage --cover-erase --cover-branches \
 
18
       --cover-package=curtin --cover-inclusive tests/unittests}
17
19
 
18
20
[testenv:py3]
19
21
basepython = python3
20
22
 
 
23
[testenv:py27]
 
24
basepython = python2.7
 
25
 
21
26
# tox uses '--pre' by default to pip install.  We don't want that, and
22
27
# 'pip_pre=False' isn't available until tox version 1.9.
23
28
install_command = pip install {opts} {packages}
32
37
basepython = python3
33
38
deps = {[testenv]deps}
34
39
    flake8
35
 
commands = {envpython} -m flake8 {posargs:curtin tests/vmtests}
 
40
commands = {envpython} -m flake8 {posargs:curtin tests/}
36
41
 
37
42
[testenv:py3-pylint]
38
43
# set basepython because tox 1.6 (trusty) does not support generated environments
49
54
    pylint==1.5.4
50
55
commands = {envpython} -m pylint --errors-only {posargs:curtin}
51
56
 
52
 
[testenv:coverage3]
53
 
envdir = {toxworkdir}/py34
54
 
commands = {envpython} {toxinidir}/tools/noproxy nosetests --with-coverage --cover-erase --cover-branches --cover-package=curtin --cover-inclusive {posargs} tests/unittests
55
 
 
56
 
[testenv:coverage27]
57
 
envdir = {toxworkdir}/py27
58
 
commands = {envpython} {toxinidir}/tools/noproxy nosetests --with-coverage --cover-erase --cover-branches --cover-package=curtin --cover-inclusive {posargs} tests/unittests
59
 
 
60
57
[testenv:docs]
61
58
deps = {[testenv]deps}
62
59
    sphinx