-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
45 lines (38 loc) · 1.33 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
language: generic
sudo: required
dist: trusty
env:
- QGIS_REPO=http://qgis.org/debian-ltr
- QGIS_REPO=http://qgis.org/debian
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
- sudo -H pip install --upgrade pip
- sudo -H pip install nose
- sudo -H pip install rednose
- sudo -H pip install --upgrade pycodestyle
- sudo apt-get install pylint
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:
- pycodestyle --exclude=test,resources*.py,help ./ --format=pylint
- make pylint
- QGIS_DEBUG=0 xvfb-run --server-args="-screen 0, 1024x768x24" nosetests -s --nologcapture -A 'not slow' -v --rednose --verbose
notifications:
email:
webhooks:
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always