add travis integration, fixes for py25 and py27 no pyc tox env
--HG-- branch : travis-integration
This commit is contained in:
parent
1a319056fc
commit
1736242bd7
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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>`_.
|
||||
|
||||
.. 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::
|
||||
|
||||
# content of test_module.py
|
||||
|
|
5
tox.ini
5
tox.ini
|
@ -13,6 +13,10 @@ deps=
|
|||
changedir=.
|
||||
commands= py.test --genscript=pytest1
|
||||
|
||||
[testenv:py25]
|
||||
setenv =
|
||||
PIP_INSECURE=1
|
||||
|
||||
[testenv:py27-xdist]
|
||||
changedir=.
|
||||
basepython=python2.7
|
||||
|
@ -29,6 +33,7 @@ basepython=python2.7
|
|||
deps=pytest-xdist
|
||||
setenv=
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
distribute=true
|
||||
commands=
|
||||
py.test -n3 -rfsxX \
|
||||
--junitxml={envlogdir}/junit-{envname}.xml {posargs:testing}
|
||||
|
|
Loading…
Reference in New Issue