Update the Travis-CI jobs
This commit is contained in:
parent
aab01ad153
commit
243d3b0732
8
.testr.conf
Normal file
8
.testr.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
|
||||||
|
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
|
||||||
|
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-160} \
|
||||||
|
${PYTHON:-python} -m subunit.run discover -t ./ ./hnv_client/tests $LISTOPT $IDOPTION
|
||||||
|
|
||||||
|
test_id_option=--load-list $IDFILE
|
||||||
|
test_list_option=--list
|
@ -7,3 +7,5 @@ env:
|
|||||||
- TOXENV=py27
|
- TOXENV=py27
|
||||||
- TOXENV=pep8
|
- TOXENV=pep8
|
||||||
- TOXENV=pylint
|
- TOXENV=pylint
|
||||||
|
- TOXENV=cover
|
||||||
|
- TOXENV=docs
|
||||||
|
@ -3,13 +3,14 @@
|
|||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
|
|
||||||
hacking<0.11,>=0.10.0
|
hacking<0.11,>=0.10.0
|
||||||
|
|
||||||
coverage>=4.0 # Apache-2.0
|
coverage>=4.0 # Apache-2.0
|
||||||
fixtures>=3.0.0 # Apache-2.0/BSD
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
mock>=2.0 # BSD
|
mock>=2.0 # BSD
|
||||||
|
sphinx
|
||||||
|
oslosphinx
|
||||||
python-subunit>=0.0.18 # Apache-2.0/BSD
|
python-subunit>=0.0.18 # Apache-2.0/BSD
|
||||||
testrepository>=0.0.18 # Apache-2.0/BSD
|
testrepository>=0.0.18 # Apache-2.0/BSD
|
||||||
testscenarios>=0.4 # Apache-2.0/BSD
|
testscenarios>=0.4 # Apache-2.0/BSD
|
||||||
testtools>=1.4.0 # MIT
|
testtools>=1.4.0 # MIT
|
||||||
nose
|
nose
|
||||||
pylint
|
pylint
|
||||||
|
8
tox.ini
8
tox.ini
@ -9,7 +9,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
install_command = pip install -U --force-reinstall {opts} {packages}
|
install_command = pip install -U --force-reinstall {opts} {packages}
|
||||||
commands = nosetests hnv_client/tests
|
commands = python setup.py testr --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
commands = flake8 hnv_client {posargs}
|
commands = flake8 hnv_client {posargs}
|
||||||
@ -19,9 +19,15 @@ deps = flake8
|
|||||||
commands = pylint hnv_client --rcfile={toxinidir}/.pylintrc {posargs}
|
commands = pylint hnv_client --rcfile={toxinidir}/.pylintrc {posargs}
|
||||||
deps = pylint
|
deps = pylint
|
||||||
|
|
||||||
|
[testenv:cover]
|
||||||
|
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
|
[testenv:docs]
|
||||||
|
commands = python setup.py build_sphinx
|
||||||
|
|
||||||
[nosetests]
|
[nosetests]
|
||||||
verbosity = 1
|
verbosity = 1
|
||||||
detailed-errors = 1
|
detailed-errors = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user