diff --git a/.travis.yml b/.travis.yml index 42baf14..d7102ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,15 @@ language: python python: - "2.7" - "3.5" + - "3.6" +dist: trusty +sudo: false addons: - postgresql: "9.4" + postgresql: "9.5" + apt: + packages: + - postgresql-9.5-postgis-2.3 services: postgresql diff --git a/README.md b/README.md index 756249d..0290b9b 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,21 @@ If you want your user to have super privileges: ALTER USER cosmopolitan WITH SUPERUSER; +Tip for local development using (OS X) + +Install [GDAL binaries]() for OSX, and add the following to .bash_profile: + + GDAL_LIBRARY_PATH="/Library/Frameworks/GDAL.framework/Versions/1.11/GDAL" + GEOS_LIBRARY_PATH="/Library/Frameworks/GEOS.framework/Versions/3/GEOS" + +Then add the following to your local Django settings: + + # GeoDjango fixes + GDAL_LIBRARY_PATH = os.environ.get('GDAL_LIBRARY_PATH') + GEOS_LIBRARY_PATH = os.environ.get('GEOS_LIBRARY_PATH') + +(see https://www.alextomkins.com/2017/08/fixing-gdal-geos-django-macos/ for details) + ## Starting from scratch ### Requirements