xivo-lib-python
=========
[![Build Status](https://travis-ci.org/xivo-pbx/xivo-lib-python.png?branch=master)](https://travis-ci.org/xivo-pbx/xivo-lib-python)

xivo-lib-python is a common library used by various other services in XiVO


Running unit tests
------------------

```
apt-get install libpq-dev python-dev libffi-dev libyaml-dev python3-dev
pip install tox
tox --recreate -e py27
```

or

```
apt-get install libpq-dev python-dev libffi-dev libyaml-dev python3-dev
pip install -U -r requirements.txt
pip install -U -r test-requirements.txt
nosetests
```


Running integration tests
-------------------------

You need Docker installed.
This tests both python2 and 3.

```
cd integration_tests
pip install -U -r test-requirements.txt
make test-setup
make test
```

To test specifically python 2 or 3, you can change the two last lines by those :
```
make clone test-setup-local-python2
make test
```
or
```
make clone test-setup-local-python3
make test
```
