2014-09-21 16:37:29 +02:00
|
|
|
language: python
|
|
|
|
|
|
|
|
python:
|
|
|
|
- "2.7"
|
|
|
|
|
2016-05-21 19:53:40 +02:00
|
|
|
cache: pip
|
|
|
|
|
2014-10-13 16:57:46 +02:00
|
|
|
before_install:
|
2014-09-21 16:37:29 +02:00
|
|
|
- lsb_release -a
|
2016-12-01 19:27:07 +00:00
|
|
|
- sudo add-apt-repository ppa:deluge-team/develop -y
|
2014-09-21 16:37:29 +02:00
|
|
|
- sudo apt-get update
|
|
|
|
|
2014-10-13 16:57:46 +02:00
|
|
|
# command to install dependencies
|
|
|
|
install:
|
|
|
|
- bash -c "echo $APTPACKAGES"
|
|
|
|
- sudo apt-get install $APTPACKAGES
|
2015-11-14 21:26:14 +01:00
|
|
|
- pip install "tox==2.1.1"
|
2014-09-21 16:37:29 +02:00
|
|
|
|
|
|
|
env:
|
2014-10-13 16:57:46 +02:00
|
|
|
global:
|
|
|
|
- APTPACKAGES="python-libtorrent"
|
|
|
|
- APTPACKAGES_GTKUI="python-gobject python-glade2"
|
2015-07-15 22:17:36 +02:00
|
|
|
- DISPLAY=:99.0
|
2014-10-13 16:57:46 +02:00
|
|
|
matrix:
|
|
|
|
- TOX_ENV=pydef
|
|
|
|
- TOX_ENV=flake8
|
2016-05-08 17:42:34 +01:00
|
|
|
# - TOX_ENV=flake8-complexity
|
2014-10-13 16:57:46 +02:00
|
|
|
- TOX_ENV=docs
|
2015-09-25 18:17:29 +01:00
|
|
|
# - TOX_ENV=todo
|
2014-10-13 16:57:46 +02:00
|
|
|
- TOX_ENV=trial APTPACKAGES="$APTPACKAGES $APTPACKAGES_GTKUI"
|
|
|
|
- TOX_ENV=pygtkui APTPACKAGES="$APTPACKAGES $APTPACKAGES_GTKUI"
|
2014-11-29 16:15:49 +01:00
|
|
|
# - TOX_ENV=testcoverage APTPACKAGES="$APTPACKAGES $APTPACKAGES_GTKUI"
|
2016-04-13 21:38:33 +02:00
|
|
|
- TOX_ENV=plugins
|
2014-09-21 16:37:29 +02:00
|
|
|
|
|
|
|
virtualenv:
|
|
|
|
system_site_packages: true
|
|
|
|
|
2014-10-13 16:57:46 +02:00
|
|
|
# We use xvfb for the GTKUI tests
|
2014-09-21 16:37:29 +02:00
|
|
|
before_script:
|
|
|
|
- export PYTHONPATH=$PYTHONPATH:$PWD
|
2016-10-17 12:40:28 +01:00
|
|
|
- python -c "import libtorrent as lt; print lt.__version__"
|
2015-07-15 22:17:36 +02:00
|
|
|
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
|
2015-08-25 19:42:07 +01:00
|
|
|
- echo '2.0.0.dev0' > RELEASE-VERSION
|
2014-09-21 16:37:29 +02:00
|
|
|
|
|
|
|
script:
|
2015-07-15 22:17:36 +02:00
|
|
|
- bash -c "echo $DISPLAY"
|
2014-09-21 16:37:29 +02:00
|
|
|
- tox -e $TOX_ENV
|