 45aaaee923
			
		
	
	45aaaee923
	
	
	
		
			
			The gating on python 3.3 is restricted to <= Mitaka. This is due to the change from Ubuntu Trusty to Xenial, where only python3.5 is available. There is no need to continue to keep these settings. Change-Id: Id04514d228a12eeb6725cd9a266eab9de01125e4
		
			
				
	
	
		
			80 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			80 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| [tox]
 | |
| envlist = {pypy,pep8,py27,py35}
 | |
| 
 | |
| [testenv]
 | |
| usedevelop = True
 | |
| deps =
 | |
|     coverage
 | |
|     -rrequirements.txt
 | |
|     -rtest-requirements.txt
 | |
| passenv =
 | |
|     HOME
 | |
|     http_proxy
 | |
|     HTTP_PROXY
 | |
|     https_proxy
 | |
|     HTTPS_PROXY
 | |
|     no_proxy
 | |
|     NO_PROXY
 | |
| whitelist_externals =
 | |
|     bash
 | |
| commands =
 | |
|     /usr/bin/find . -type f -name "*.pyc" -delete
 | |
| 
 | |
| [testenv:functional]
 | |
| commands =
 | |
|     coverage run -m pytest --capture=no --strict {posargs}
 | |
|     coverage report -m --omit="*/test*" --fail-under=99
 | |
| 
 | |
| # environment used by the -infra templated docs job
 | |
| [testenv:venv]
 | |
| commands =
 | |
|     {posargs}
 | |
| 
 | |
| [testenv:docs]
 | |
| commands=
 | |
|     bash -c "rm -rf doc/build"
 | |
|     doc8 doc
 | |
|     python setup.py build_sphinx
 | |
| 
 | |
| [doc8]
 | |
| # Settings for doc8:
 | |
| extensions = .rst
 | |
| 
 | |
| [testenv:releasenotes]
 | |
| commands =
 | |
|     sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
 | |
| 
 | |
| [testenv:linters]
 | |
| deps =
 | |
|     {[testenv:pep8]deps}
 | |
| commands =
 | |
|     {[testenv:pep8]commands}
 | |
| 
 | |
| [testenv:integration]
 | |
| commands =
 | |
|     coverage run -m pytest --capture=no --strict "tests/int"
 | |
| 
 | |
| [testenv:unit]
 | |
| commands =
 | |
|     coverage run -m pytest --capture=no --strict "tests/unit"
 | |
| 
 | |
| [testenv:pep8]
 | |
| deps =
 | |
|     flake8
 | |
|     flake8-import-order
 | |
|     pep8-naming
 | |
| commands =
 | |
|     flake8 .
 | |
| 
 | |
| [testenv:py3pep8]
 | |
| basepython = python3.3
 | |
| deps =
 | |
|     flake8
 | |
|     flake8-import-order
 | |
|     pep8-naming
 | |
| commands =
 | |
|     flake8 .
 | |
| 
 | |
| [flake8]
 | |
| exclude = .tox,*.egg,.git,_build,docs-rst
 |