forked from hotosm/osm-export-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (25 loc) · 832 Bytes
/
.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
notifications:
email: false
language: python
python:
- "2.7"
addons:
postgresql: "9.4"
before_install:
- sudo apt-get install -y libspatialite5 libspatialite-dev
- sudo apt-get install -y python-software-properties
- sudo rm /etc/apt/sources.list.d/ubuntugis-stable-source.list
- sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable -y
- sudo apt-get update -qq
- sudo apt-get install -y postgresql-9.4-postgis-2.1
- sudo apt-get install -y gdal-bin libgdal-dev
- export CPLUS_INCLUDE_PATH=/usr/include/gdal
- export C_INCLUDE_PATH=/usr/include/gdal
before_script:
- psql -U postgres -c "create extension postgis"
- createuser hot --superuser --createdb -U postgres
install:
"pip install -r requirements-dev.txt"
# command to run tests
script:
./manage.py test