deluge/.travis.yml
bendikro 66f2739be7 Added .travis.yml (for travis-ci) and tox.ini files
Targets:

* Runs the unit-tests for python 2.7
* Tests unit-test coverage
* Try to build docs
* Code style checks:
  * flake8
  * isort

Codes changes:
* Fixed tests for httpdownloader (using tmp dir)
* Implemented a couple of tests for Stats plugin but they fail to run on travis

Issues:
* Can't get py26 to work because of installing libtorrent through apt and
  the option system_site_packages fails for 2.6.
2014-09-25 14:11:51 +01:00

36 lines
606 B
YAML

language: python
python:
# - "2.6"
- "2.7"
# command to install dependencies
install:
- pip install tox
- lsb_release -a
- sudo add-apt-repository ppa:deluge-team/ppa -y
- sudo apt-get update
- sudo apt-get install python-libtorrent
script:
- tox
env:
- TOX_ENV=pydef
- TOX_ENV=plugins
- TOX_ENV=flake8
- TOX_ENV=flake8-complexity
- TOX_ENV=isort
- TOX_ENV=docs
- TOX_ENV=testcoverage
virtualenv:
system_site_packages: true
before_script:
- export PYTHONPATH=$PYTHONPATH:$PWD
- python -c "import libtorrent as lt; print lt.version"
script:
- tox -e $TOX_ENV