forked from qgis2web/qgis2web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (43 loc) · 2.03 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
language: generic
sudo: required
dist: trusty
env:
- QGIS_REPO=http://qgis.org/debian-ltr
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 coverage
- sudo -H pip install nose
- sudo -H pip install rednose
- sudo -H pip install --upgrade pycodestyle
- sudo apt-get install pylint
- sudo -H pip install python-coveralls
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,exp2js.py,ui*.py,xmltodict.py ./ --format=pylint --ignore=E722,W504
- make pylint
- QGIS_DEBUG=0 xvfb-run --server-args="-screen 0, 1024x768x24" nosetests -s --nologcapture -A 'not slow' -v --rednose --with-coverage --verbose --cover-package=qgis2web --cover-package=maindialog --cover-package=utils --cover-package=configparams --cover-package=olwriter --cover-package=leafletWriter --cover-package=olScriptStrings --cover-package=olFileScripts --cover-package=olStyleScripts --cover-package=olLayerScripts --cover-package=basemaps --cover-package=leafletFileScripts --cover-package=leafletLayerScripts --cover-package=leafletScriptStrings --cover-package=leafletStyleScripts --cover-package=exporter --cover-package=writerRegistry --cover-package=writer
after_success:
- coveralls
notifications:
email:
webhooks:
urls:
- https://webhooks.gitter.im/e/5278d2ea8e892b8f3c32
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