python-jenkins/tox.ini
Khai Do 5e99b853bc Setup required packages with bindep
python-jenkins fails to build without the kerberose packages and those
packages are not included in our xenial images.  Use bindep to
configure the required minimum set of required packages.

build error:
  building 'kerberos' extension
  creating build
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/src
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
   -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong
   -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/base64.c
   -o build/temp.linux-x86_64-2.7/src/base64.o sh: 1: krb5-config: not found
  x86_64-linux-gnu-gcc: error: sh:: No such file or directory
  x86_64-linux-gnu-gcc: error: 1:: No such file or directory
  x86_64-linux-gnu-gcc: error: krb5-config:: No such file or directory
  x86_64-linux-gnu-gcc: error: not: No such file or directory
  x86_64-linux-gnu-gcc: error: found: No such file or directory
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for kerberos

Change-Id: Iad6e10ef6ef05e0b5c6db08dbb97b2c3a3e42a30
2016-07-13 10:14:35 -07:00

44 lines
1.2 KiB
INI

[tox]
minversion = 1.6
skipsdist = True
envlist = py34, pep8, py27, pypy
[testenv]
setenv VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install {opts} {packages}
deps = -r{toxinidir}/test-requirements.txt
commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:cover]
commands =
coverage run -m discover
coverage report --omit="tests/*" --show-missing
coverage html --omit="tests/*" -d cover
[testenv:pep8]
commands = flake8
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:venv]
commands = {posargs}
[flake8]
; E501 line too long (80 > 79 characters)
; H301 one import per line
; H405 multi line docstring summary not separated with an empty line
; H501 Do not use locals() for string formatting
ignore = E501,H301,H405,H501
show-source = True
exclude = .venv,.tox,dist,doc,build,*.egg
[testenv:bindep]
# Do not install any requirements. We want this to be fast and work even if
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files.
deps = bindep
commands = bindep test