Add tox and travis-ci support
Add tox integration to run unittests in supported python releases. Travis-CI is used for test execution. Additionally, the unittest TestQuotePgIdentifier was updated to support using assert_raises_regexp on python-2.6. Sample travis-ci output available at https://travis-ci.org/ansible/ansible/builds/54189977pull/4420/head
parent
c8de03d516
commit
3d67e9e0c0
|
@ -0,0 +1,4 @@
|
|||
[report]
|
||||
omit =
|
||||
*/python?.?/*
|
||||
*/site-packages/nose/*
|
|
@ -42,6 +42,7 @@ deb-build
|
|||
credentials.yml
|
||||
# test output
|
||||
.coverage
|
||||
.tox
|
||||
results.xml
|
||||
coverage.xml
|
||||
/test/units/cover-html
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
sudo: false
|
||||
language: python
|
||||
env:
|
||||
- TOXENV=py26
|
||||
- TOXENV=py27
|
||||
install:
|
||||
- pip install tox
|
||||
script:
|
||||
- tox
|
||||
after_success:
|
||||
- coveralls
|
2
Makefile
2
Makefile
|
@ -93,7 +93,7 @@ NOSETESTS3 ?= nosetests-3.3
|
|||
all: clean python
|
||||
|
||||
tests:
|
||||
PYTHONPATH=./lib $(NOSETESTS) -d -w test/units -v # Could do: --with-coverage --cover-package=ansible
|
||||
PYTHONPATH=./lib $(NOSETESTS) -d -w test/units -v --with-coverage --cover-package=ansible --cover-branches
|
||||
|
||||
newtests:
|
||||
PYTHONPATH=./v2:./lib $(NOSETESTS) -d -w v2/test -v --with-coverage --cover-package=ansible --cover-branches
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
[](http://badge.fury.io/py/ansible) [](https://pypi.python.org/pypi/ansible)
|
||||
[](http://badge.fury.io/py/ansible)
|
||||
[](https://pypi.python.org/pypi/ansible)
|
||||
[](https://travis-ci.org/ansible/ansible)
|
||||
|
||||
|
||||
Ansible
|
||||
|
|
|
@ -5,3 +5,5 @@
|
|||
nose
|
||||
mock
|
||||
passlib
|
||||
coverage
|
||||
coveralls
|
||||
|
|
Loading…
Reference in New Issue