-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (47 loc) · 1.43 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
sudo: true
language: python
python:
- "2.7"
before_install:
- lsb_release -a
- sudo add-apt-repository ppa:deluge-team/ppa -y
- sudo apt-get update
# command to install dependencies
install:
- bash -c "echo $APTPACKAGES"
- sudo apt-get install $APTPACKAGES
- easy_install -U pip
- pip --version
- pip install "tox==2.1.1"
- tox --version
- mkdir install
- export PYTHONPATH=$PYTHONPATH:$PWD/install
- python setup.py develop --install-dir=install
env:
global:
- PIP_DOWNLOAD_CACHE=$HOME/.pip-cache/
- APTPACKAGES="deluge python-libtorrent python-gobject python-glade2"
- DISPLAY=:99.0
matrix:
- TOX_ENV=pydef APTPACKAGES="$APTPACKAGES"
- TOX_ENV=all APTPACKAGES="$APTPACKAGES"
- TOX_ENV=trial APTPACKAGES="$APTPACKAGES"
- TOX_ENV=flake8
- TOX_ENV=flake8-complexity
- TOX_ENV=isort
- TOX_ENV=testcoverage
- TOX_ENV=testcoverage-html
# - TOX_ENV=docs
# - TOX_ENV=todo
virtualenv:
system_site_packages: true
# We use xvfb for the GTKUI tests
before_script:
- python -c "import deluge; print deluge"
- python -c "import libtorrent as lt; print lt.version"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
script:
- bash -c "echo $DISPLAY"
- bash -c "echo $PWD"
- bash -c "echo $PYTHONPATH"
- tox -e $TOX_ENV