mirror of
https://github.com/ceph/ceph
synced 2025-01-14 23:12:52 +00:00
32178bb793
Travis CI's docs say that HOME is supposed to be set to /home/travis by default, however, it also says "do not depend on this value": http://docs.travis-ci.com/user/ci-environment/ Teuthology depends on the $HOME environment variable being set, and the test suites that depended on this recently failed to build in Travis CI. Set the var explicitly so it's always available for the tests.
43 lines
939 B
INI
43 lines
939 B
INI
[tox]
|
|
envlist = docs, py27, py27-integration, flake8
|
|
|
|
[testenv:py27]
|
|
passenv = HOME
|
|
sitepackages=True
|
|
deps=
|
|
-r{toxinidir}/requirements.txt
|
|
mock
|
|
fudge
|
|
nose
|
|
pytest-cov==1.6
|
|
coverage==3.7.1
|
|
|
|
commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}
|
|
|
|
[testenv:py27-integration]
|
|
passenv = HOME
|
|
sitepackages=True
|
|
deps=
|
|
-r{toxinidir}/requirements.txt
|
|
mock
|
|
fudge
|
|
nose
|
|
pytest-cov==1.6
|
|
coverage==3.7.1
|
|
|
|
commands=py.test --cov=teuthology --cov-report=term -v {posargs:teuthology/test/integration teuthology/orchestra/test/integration}
|
|
basepython=python2.7
|
|
|
|
[testenv:flake8]
|
|
deps=
|
|
flake8
|
|
commands=flake8 --select=F,E9 {posargs:teuthology scripts}
|
|
|
|
[testenv:docs]
|
|
basepython=python
|
|
changedir=docs
|
|
deps=sphinx
|
|
commands=
|
|
sphinx-apidoc -f -o . ../teuthology ../teuthology/test ../teuthology/orchestra/test ../teuthology/task/test
|
|
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|