Add tox for proliantutils module
This commit adds tox support for proliantutils module.
This commit is contained in:
parent
1251334e4d
commit
f1cf46f1a8
4
.testr.conf
Normal file
4
.testr.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} OS_TEST_TIMEOUT=60 ${PYTHON:-python} -m subunit.run discover -t ./ ${TESTS_DIR:-./proliantutils/tests/} $LISTOPT $IDOPTION
|
||||||
|
test_id_option=--load-list $IDFILE
|
||||||
|
test_list_option=--list
|
18
ChangeLog
18
ChangeLog
@ -1,16 +1,14 @@
|
|||||||
CHANGES
|
CHANGES
|
||||||
=======
|
=======
|
||||||
|
|
||||||
v0.1.2
|
* Fix update_persistent_boot for Gen9 servers
|
||||||
------
|
* Backout changes from 18bbcad
|
||||||
|
* Add system health methods to ribcl module
|
||||||
* added update_persistent_mode and other helper functions
|
* Remove unused variable
|
||||||
|
* Fix minor space issues in ribcl module
|
||||||
v1.1
|
* Add update_persistent_boot to ribcl module
|
||||||
----
|
* Add boot mode commands to ribcl module
|
||||||
|
|
||||||
* new commands added
|
|
||||||
* Add support for pbr
|
* Add support for pbr
|
||||||
* Adding Documentation to ribcl module
|
* Add documentation to ribcl module
|
||||||
* Submit ribcl ilo module
|
* Submit ribcl ilo module
|
||||||
* Initial commit
|
* Initial commit
|
||||||
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
six>=1.9.0
|
2
test-requirements.txt
Normal file
2
test-requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
mock
|
||||||
|
testrepository>=0.0.18
|
27
tox.ini
Normal file
27
tox.ini
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
[tox]
|
||||||
|
envlist = py27,pep8
|
||||||
|
|
||||||
|
[testenv]
|
||||||
|
usedevelop = True
|
||||||
|
install_command = pip install -i http://pypi.gocept.com/simple/ -U {opts} {packages}
|
||||||
|
deps =
|
||||||
|
-r{toxinidir}/requirements.txt
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
|
commands =
|
||||||
|
bash -c "TESTS_DIR=./proliantutils/tests/ python setup.py testr --slowest --testr-args='{posargs}'"
|
||||||
|
#setenv = PYTHONDONTWRITEBYTECODE=1
|
||||||
|
|
||||||
|
[testenv:pep8]
|
||||||
|
basepython = python2.7
|
||||||
|
deps =
|
||||||
|
-r{toxinidir}/requirements.txt
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
|
commands =
|
||||||
|
flake8 proliantutils
|
||||||
|
|
||||||
|
[flake8]
|
||||||
|
max-complexity=15
|
||||||
|
|
||||||
|
[testenv:venv]
|
||||||
|
setenv = PYTHONHASHSEED=0
|
||||||
|
commands = {posargs}
|
Loading…
Reference in New Issue
Block a user