Merged in bubenkoff/pytest/travis-integration (pull request #41)

add travis integration, fixes for py25 and py27 no pyc tox env
This commit is contained in:
holger krekel 2013-07-06 15:51:14 +02:00
commit 199f0314b9
4 changed files with 50 additions and 0 deletions

32
.gitignore vendored Normal file
View File

@ -0,0 +1,32 @@
# Automatically generated by `hgimportsvn`
.svn
.hgsvn
# Ignore local virtualenvs
lib/
bin/
include/
.Python/
# These lines are suggested according to the svn:ignore property
# Feel free to enable them by uncommenting them
*.pyc
*.pyo
*.swp
*.html
*.class
*.orig
*~
doc/*/_build
build/
dist/
*.egg-info
issue/
env/
3rdparty/
.tox
.cache
.coverage
.ropeproject

10
.travis.yml Normal file
View File

@ -0,0 +1,10 @@
language: python
# command to install dependencies
install: "pip install -e . detox"
# # command to run tests
script: detox --recreate
notifications:
irc:
- "chat.freenode.net#pylib"
email:
- pytest-commit@python.org

View File

@ -16,6 +16,9 @@ scales to support complex functional testing. It provides
- many `external plugins <http://pytest.org/latest/plugins.html#installing-external-plugins-searching>`_. - many `external plugins <http://pytest.org/latest/plugins.html#installing-external-plugins-searching>`_.
.. image:: https://secure.travis-ci.org/bubenkoff/pytest.png?branch=travis-integration
:target: http://travis-ci.org/bubenkoff/pytest
A simple example for a test:: A simple example for a test::
# content of test_module.py # content of test_module.py

View File

@ -13,6 +13,10 @@ deps=
changedir=. changedir=.
commands= py.test --genscript=pytest1 commands= py.test --genscript=pytest1
[testenv:py25]
setenv =
PIP_INSECURE=1
[testenv:py27-xdist] [testenv:py27-xdist]
changedir=. changedir=.
basepython=python2.7 basepython=python2.7
@ -29,6 +33,7 @@ basepython=python2.7
deps=pytest-xdist deps=pytest-xdist
setenv= setenv=
PYTHONDONTWRITEBYTECODE=1 PYTHONDONTWRITEBYTECODE=1
distribute=true
commands= commands=
py.test -n3 -rfsxX \ py.test -n3 -rfsxX \
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing} --junitxml={envlogdir}/junit-{envname}.xml {posargs:testing}