forked from inasafe/inasafe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
61 lines (51 loc) · 1.83 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
56
57
58
59
60
61
language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
branches:
only:
- master
- develop
- experimental
before_install:
- sudo apt-get -qq -y update
install:
- sudo apt-get install -y python-software-properties
# - sudo apt-get install -y software-properties-common
# - sudo add-apt-repository http://qgis.org/debian-ltr # for QGIS LTR
- sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable # for QGIS
- sudo apt-get update
- sudo apt-get install -y --force-yes git qgis python-qgis xvfb python-nose python-coverage pyflakes python-nosexcover python-scientific python-beautifulsoup
- pip install --upgrade pip
- pip install --upgrade pep8
- pip install --upgrade pylint
- pip install scrutinizer-ocular
- echo "Checking out test data at" `date`
- make testdata
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
- dpkg -s qgis | grep 'Version'
script:
- make pep8
# - make pylint # disable it until we make it works in Travis.
- xvfb-run --server-args="-screen 0, 1024x768x24" nosetests -A 'not slow' -v --with-id --with-xcoverage --with-xunit --verbose --cover-package=safe safe
notifications:
irc:
channels:
- "irc.freenode.org#inasafe"
use_notice: true
webhooks:
urls:
- https://webhooks.gitter.im/e/a021ad05fffeac7b0a92L
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: always # options: [always|never|change] default: always
email: