* Added custom trial reporter for TODO with test example in test_torrentmanager.py * Set Stats plugin tests as todo * Disable new_release_check when running unit tests * Added pytest.mark.slow to test_core.test_test_listen_port * Get rid of unit test warnings (Caused by bad names in test classes) * Removed warnings.filterwarnings in test files. * Added separate tox target for generating test coverage HTML report.
38 lines
642 B
YAML
38 lines
642 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=trial
|
|
- TOX_ENV=todo
|
|
# - 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
|