~curtin-dev/curtin/trunk

« back to all changes in this revision

Viewing changes to tox.ini

  • Committer: Scott Moser
  • Date: 2015-07-24 00:25:53 UTC
  • Revision ID: smoser@ubuntu.com-20150724002553-k8cv1oz6r15l8yzr
add tox for easier testing

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[tox]
 
2
minversion = 1.6
 
3
skipsdist = True
 
4
envlist = py27, py34, pep8
 
5
 
 
6
[tox:jenkins]
 
7
downloadcache = ~/cache/pip
 
8
 
 
9
[testenv]
 
10
usedevelop = True
 
11
# LC_ALL see https://github.com/gabrielfalcao/HTTPretty/issues/223
 
12
setenv = VIRTUAL_ENV={envdir}
 
13
    LC_ALL = en_US.utf-8
 
14
deps = -r{toxinidir}/test-requirements.txt
 
15
    -r{toxinidir}/requirements.txt
 
16
commands = {envpython} {toxinidir}/tools/noproxy nosetests {posargs}
 
17
 
 
18
# tox uses '--pre' by default to pip install.  We don't want that, and
 
19
# 'pip_pre=False' isn't available until tox version 1.9.
 
20
install_command = pip install {opts} {packages}
 
21
 
 
22
[testenv:flake8]
 
23
deps = {[testenv]deps}
 
24
    flake8
 
25
commands = flake8 {posargs}
 
26
 
 
27
[flake8]
 
28
builtins = _
 
29
exclude = .venv,.bzr,.tox,dist,doc,*lib/python*,*egg,build