forked from anitagraser/TimeManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (37 loc) · 1.49 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
language: python
python:
- "2.7"
addons:
postgresql: "9.3"
virtualenv:
system_site_packages: true
before_install:
- psql -c 'create database mydb;' -U postgres
- psql -U postgres -c "create extension postgis"
install:
- sudo rm -rf /etc/apt/sources.list.d/*gis*list # work around for qgis/postgis package problems on travis
- echo "deb http://qgis.org/debian $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list
- echo "deb-src http://qgis.org/debian $(lsb_release -cs) main" | sudo tee -a /etc/apt/sources.list
- gpg --keyserver keyserver.ubuntu.com --recv 997D3880
- gpg --export --armor 997D3880 | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install python-qt4
- sudo apt-get install qgis --force-yes
- sudo apt-get install python-qgis
- sudo apt-get install vnc4server # to mock an X Server
- pip install pep8==1.4.6
- pip install mock
- pip install nose
- pip install coverage
- pip install coveralls
- pip install psycopg2
before_script:
- echo -e "p4ssw0rd\np4ssw0rd\n" | vncserver -geometry 1024x768 :99
- export DISPLAY=:99.0
- psql -U postgres mydb -c "create extension postgis"
- psql -U postgres -c "ALTER USER postgres WITH PASSWORD 'postgres'";
script:
- bash run_tests.sh # this runs tests with coverage
#- sh pep8.sh # run pep8 on the python code
after_success:
coveralls