forked from Droxef/pygsp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (42 loc) · 1.55 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
# Needed as trusty (the default) doesn't support python 3.7.
# Remove once xenial is made default.
# https://github.com/travis-ci/travis-ci/issues/9815
dist: xenial
language: python
python:
- 3.5
- 3.6
- 3.7
matrix:
include:
- python: 2.7
dist: trusty # "cannot import name QtOpenGL" with xenial
cache: pip # avoid PySide wheel build
addons:
apt:
sources:
- sourceline: 'deb https://downloads.skewed.de/apt/xenial xenial universe'
key_url: 'http://ha.pool.sks-keyservers.net/pks/lookup?op=get&search=0x612DEFB798507F25'
# TODO: remove the below once we drop python 2.7.
- ubuntu-toolchain-r-test
- sourceline: 'deb http://downloads.skewed.de/apt/trusty trusty universe'
packages:
- python3-graph-tool
- python-graph-tool
- libqt5gui5 # pyqt5>5.11 fails to load the xcb platform plugin without it
install:
- pip install --upgrade --upgrade-strategy eager .[dev]
# Upgrade to test with the latest version of our dependencies.
before_script:
# As graph-tool cannot be installed by pip, link to the system installation
# from the virtual environment.
# TODO: remove the condition once we drop python 2.7.
- if [[ $(python -c 'import sys; print(sys.version_info[0])') = 3 ]] ;
then ln -s "/usr/lib/python3/dist-packages/graph_tool" $(python -c "import site; print(site.getsitepackages()[0])");
else ln -s "/usr/lib/python2.7/dist-packages/graph_tool" $(python -c "import site; print(site.getsitepackages()[0])"); fi
script:
# - make lint
- make test
- make doc
after_success:
- coveralls