2014-09-21 14:37:29 +00:00
|
|
|
language: python
|
|
|
|
|
|
|
|
python:
|
|
|
|
- "2.7"
|
|
|
|
|
2014-10-13 14:57:46 +00:00
|
|
|
# Cache packages download with apt
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.pip-cache/
|
|
|
|
|
|
|
|
before_install:
|
2014-09-21 14:37:29 +00:00
|
|
|
- lsb_release -a
|
|
|
|
- sudo add-apt-repository ppa:deluge-team/ppa -y
|
|
|
|
- sudo apt-get update
|
|
|
|
|
2014-10-13 14:57:46 +00:00
|
|
|
# command to install dependencies
|
|
|
|
install:
|
|
|
|
- bash -c "echo $APTPACKAGES"
|
|
|
|
- sudo apt-get install $APTPACKAGES
|
|
|
|
- pip install "tox>=1.8" --download-cache $HOME/.pip-cache
|
2014-09-21 14:37:29 +00:00
|
|
|
|
|
|
|
env:
|
2014-10-13 14:57:46 +00:00
|
|
|
global:
|
|
|
|
- PIP_DOWNLOAD_CACHE=$HOME/.pip-cache/
|
|
|
|
- APTPACKAGES="python-libtorrent"
|
|
|
|
- APTPACKAGES_GTKUI="python-gobject python-glade2"
|
|
|
|
matrix:
|
|
|
|
- TOX_ENV=pydef
|
|
|
|
- TOX_ENV=flake8
|
|
|
|
- TOX_ENV=flake8-complexity
|
|
|
|
- TOX_ENV=isort
|
|
|
|
- TOX_ENV=docs
|
|
|
|
- TOX_ENV=todo
|
|
|
|
- TOX_ENV=trial APTPACKAGES="$APTPACKAGES $APTPACKAGES_GTKUI"
|
|
|
|
- TOX_ENV=pygtkui APTPACKAGES="$APTPACKAGES $APTPACKAGES_GTKUI"
|
2014-11-29 15:15:49 +00:00
|
|
|
# - TOX_ENV=testcoverage APTPACKAGES="$APTPACKAGES $APTPACKAGES_GTKUI"
|
2014-10-13 14:57:46 +00:00
|
|
|
# - TOX_ENV=plugins
|
2014-09-21 14:37:29 +00:00
|
|
|
|
|
|
|
virtualenv:
|
|
|
|
system_site_packages: true
|
|
|
|
|
2014-10-13 14:57:46 +00:00
|
|
|
# We use xvfb for the GTKUI tests
|
2014-09-21 14:37:29 +00:00
|
|
|
before_script:
|
|
|
|
- export PYTHONPATH=$PYTHONPATH:$PWD
|
|
|
|
- python -c "import libtorrent as lt; print lt.version"
|
2014-10-13 14:57:46 +00:00
|
|
|
- export DISPLAY=:99.0
|
|
|
|
- sh -e /etc/init.d/xvfb start
|
2014-09-21 14:37:29 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- tox -e $TOX_ENV
|