-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (40 loc) · 1.29 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
dist: trusty
language: python
services:
- postgresql
python:
- '2.7'
addons:
postgresql: '9.4'
apt:
packages:
- postgresql-9.4-postgis-2.3
env:
- GEOKEY='>=1.4,<1.6' DJANGO='>=1.8.19,<1.12'
virtualenv:
system_site_packages: true
install:
- sudo -E apt-get -yq update &>> ~/apt-get-update.log
- sudo apt-get install binutils libav-tools
- sudo apt-get -yq install libgdal-dev python-gdal
- gdal-config --version
- export C_INCLUDE_PATH=/usr/include/gdal
- export CPLUS_INCLUDE_PATH=/usr/include/gdal
before_script:
- psql template1 postgres -c 'create extension hstore;'
- psql -c 'create database geokey;' -U postgres
- psql -U postgres -d geokey -c 'create extension postgis;'
- pip install --upgrade pip
- pip install -e .
- pip install geokey$GEOKEY
- pip install django$DJANGO
- pip install git+https://github.com/ExCiteS/django-allauth-uwum.git
- pip install --upgrade requests[security]
- python -c "import django; print('DJANGO %s ' % django.get_version())"
- python -c "from geokey.version import get_version; print('GEOKEY %s' % get_version())"
- pip install -r travis_ci/requirements.txt
- python travis_ci/manage.py migrate
script:
- coverage run --source=geokey_wegovnow travis_ci/manage.py test geokey_wegovnow
after_success:
- coveralls