Added travis dependencies and tox config
This commit is contained in:
parent
7d4b4f4467
commit
f967875f34
|
@ -9,6 +9,7 @@ Vagrantfile
|
|||
build
|
||||
dist
|
||||
*.egg-info
|
||||
*.egg
|
||||
|
||||
# Compiled files
|
||||
*.pyc
|
||||
|
@ -17,8 +18,13 @@ dist
|
|||
*.log
|
||||
*.log.*
|
||||
|
||||
# Tox testing
|
||||
.tox
|
||||
|
||||
# Dynamically created doc folders
|
||||
doc/_build
|
||||
keys
|
||||
static
|
||||
|
||||
# Remaining stuff
|
||||
oidc_example/op2/client_db.db
|
||||
|
|
10
.travis.yml
10
.travis.yml
|
@ -1,4 +1,12 @@
|
|||
language: python
|
||||
python: "2.7"
|
||||
|
||||
env:
|
||||
- TOX_ENV=py27
|
||||
|
||||
install:
|
||||
- pip install -U tox
|
||||
- sudo apt-get install libffi-dev libsasl2-dev libldap2-dev
|
||||
|
||||
script:
|
||||
- ./setup.py test
|
||||
- tox -e $TOX_ENV
|
||||
|
|
4
setup.py
4
setup.py
|
@ -51,8 +51,8 @@ setup(
|
|||
"Topic :: Software Development :: Libraries :: Python Modules"],
|
||||
install_requires = ['requests', "pycrypto>=2.6.1", "cherrypy==3.2.4",
|
||||
"mako", "pyjwkest", "beaker", "alabaster", "importlib",
|
||||
"argparse", "pyOpenSSL"],
|
||||
"argparse", "pyOpenSSL", "python-ldap"],
|
||||
tests_require=['pytest'],
|
||||
zip_safe=False,
|
||||
cmdclass={'test': PyTest},
|
||||
)
|
||||
)
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
# Tox (http://tox.testrun.org/) is a tool for running tests
|
||||
# in multiple virtualenvs. This configuration file will run the
|
||||
# test suite on all supported python versions. To use it, "pip install tox"
|
||||
# and then run "tox" from this directory.
|
||||
|
||||
[tox]
|
||||
envlist = py27
|
||||
#, py34
|
||||
|
||||
[testenv]
|
||||
commands = python setup.py test
|
||||
deps =
|
||||
pytest
|
||||
requests
|
||||
pycrypto
|
||||
mako
|
||||
pyjwkest
|
||||
beaker
|
||||
alabaster
|
||||
importlib
|
||||
argparse
|
||||
pyOpenSSL
|
||||
cherrypy==3.2.4
|
Reference in New Issue