Skip to content

Commit 8d7e82e

Browse files
authored
Merge pull request #50 from postfalk/fix_travis
Fix travis
2 parents 74a06e5 + 5acf262 commit 8d7e82e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ before_install:
2323
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
2424
- sudo apt-get -qq update
2525
- sudo apt-get -y install python-dev python3-dev libgdal-dev gdal-bin libstdc++6-4.6-dev
26+
- sudo apt-get install libsqlite3-mod-spatialite
2627
- gdalinfo --version
2728

2829
install:

tests/settings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import os
22

3+
# required by Ubuntu systems and travis
4+
# see https://stackoverflow.com/questions/51425842/django-unable-to-load-the-spatialite-library-extension-mod-spatialite-on-ubuntu
5+
SPATIALITE_LIBRARY_PATH = 'mod_spatialite.so'
6+
37
DATABASES = {
48
'default': {
59
'ENGINE': 'django.contrib.gis.db.backends.spatialite',

0 commit comments

Comments
 (0)