-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (40 loc) · 1.25 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
language: generic
sudo: required
dist: trusty
env:
- QGIS_REPO=http://qgis.org/debian-ltr
- QGIS_REPO=http://qgis.org/debian
- QGIS_REPO=http://qgis.org/debian-nightly
addons:
apt:
packages:
- python-software-properties
-before_install:
- sudo apt-get -qq -y update
install:
- sudo add-apt-repository ${QGIS_REPO}
- sudo apt-get update
- sudo apt-get install -y --force-yes qgis python-qgis xvfb pyqt4-dev-tools
- sudo pip install --upgrade pip
- sudo pip install --upgrade coverage
- sudo pip install --upgrade nose
- sudo pip install --upgrade pep8
- sudo pip install --upgrade pylint
- sudo pip install python-coveralls
- sudo pip install --upgrade numpy
- sudo pip install --upgrade scipy
before_script:
- echo "Build starting on " `date`
- export QGIS_PREFIX_PATH=/usr
- export PYTHONPATH=${QGIS_PREFIX_PATH}/share/qgis/python/:${QGIS_PREFIX_PATH}/share/qgis/python/plugins:`pwd`
- echo "PYTHONPATH:" $PYTHONPATH
- export LD_LIBRARY_PATH=${QGIS_PREFIX_PATH}/lib
script:
- QGIS_DEBUG=0 xvfb-run --server-args="-screen 0, 1024x768x24" make pep8
- make pylint
- QGIS_DEBUG=0 xvfb-run --server-args="-screen 0, 1024x768x24" make test
after_success:
- coveralls
notifications:
email: