Skip to content

Commit

Permalink
enable all the gdals, py2.7 and 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
perrygeo committed Mar 24, 2016
1 parent c987ea3 commit 3ff95af
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 17 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,26 @@ env:
- GDALINST=$HOME/gdalinstall
- GDALBUILD=$HOME/gdalbuild
matrix:
- GDALVERSION = "1.9.2"
- GDALVERSION = "1.11.4"
- GDALVERSION = "2.0.2"
- GDALVERSION="1.9.2"
- GDALVERSION="1.10.0" # doesn't exist but path/lib will fall back to system
- GDALVERSION="1.11.4"
- GDALVERSION="2.0.2"
- GDALVERSION="2.1.0"
addons:
apt:
packages:
- libgdal1h
- gdal-bin
- libproj-dev
- libhdf5-serial-dev
- libpng-dev
- libgdal-dev
- libatlas-dev
- libatlas-base-dev
- gfortran
python:
- "2.7"
- "3.3"
# - "3.3" # disabling python3.3 for now
- "3.4"
before_install:
- pip install -U pip
Expand All @@ -34,6 +39,7 @@ before_install:
- export PATH=$GDALINST/gdal-$GDALVERSION/bin:$PATH
- export LD_LIBRARY_PATH=$GDALINST/gdal-$GDALVERSION/lib:$LD_LIBRARY_PATH
install:
- "if [ $(gdal-config --version) == \"$GDALVERSION\" ]; then echo \"Using gdal $GDALVERSION\"; else echo \"NOT using gdal $GDALVERSION as expected; aborting\"; exit 1; fi"
- "pip wheel -r requirements-dev.txt"
- "pip install -r requirements-dev.txt"
- "pip install --upgrade --force-reinstall --global-option=build_ext --global-option='-I$GDALINST/gdal-$GDALVERSION/include' --global-option='-L$GDALINST/gdal-$GDALVERSION/lib' --global-option='-R$GDALINST/gdal-$GDALVERSION/lib' -e ."
Expand Down
41 changes: 28 additions & 13 deletions scripts/travis_gdal_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ GDALOPTS=" --with-ogr \
--without-cfitsio \
--without-pcraster \
--without-netcdf \
--without-png \
--with-png \
--with-jpeg=internal \
--without-gif \
--without-ogdi \
--without-fme \
--without-hdf4 \
--without-hdf5 \
--with-hdf5 \
--without-jasper \
--without-ecw \
--without-kakadu \
Expand All @@ -43,7 +43,8 @@ GDALOPTS=" --with-ogr \
--without-perl \
--without-php \
--without-ruby \
--without-python"
--without-python \
--with-static-proj4=/usr/lib"

# Create build dir if not exists
if [ ! -d "$GDALBUILD" ]; then
Expand All @@ -67,22 +68,36 @@ if [ ! -d $GDALINST/gdal-1.9.2 ]; then
make install
fi

if [ ! -d $GDALINST/gdal-1.11.2 ]; then
if [ ! -d $GDALINST/gdal-1.11.4 ]; then
cd $GDALBUILD
wget http://download.osgeo.org/gdal/1.11.2/gdal-1.11.2.tar.gz
tar -xzf gdal-1.11.2.tar.gz
cd gdal-1.11.2
./configure --prefix=$GDALINST/gdal-1.11.2 $GDALOPTS
wget http://download.osgeo.org/gdal/1.11.4/gdal-1.11.4.tar.gz
tar -xzf gdal-1.11.4.tar.gz
cd gdal-1.11.4
./configure --prefix=$GDALINST/gdal-1.11.4 $GDALOPTS
make -s -j 2
make install
fi

if [ ! -d $GDALINST/gdal-2.0.1 ]; then
if [ ! -d $GDALINST/gdal-2.0.2 ]; then
cd $GDALBUILD
wget http://download.osgeo.org/gdal/2.0.1/gdal-2.0.1.tar.gz
tar -xzf gdal-2.0.1.tar.gz
cd gdal-2.0.1
./configure --prefix=$GDALINST/gdal-2.0.1 $GDALOPTS
wget http://download.osgeo.org/gdal/2.0.2/gdal-2.0.2.tar.gz
tar -xzf gdal-2.0.2.tar.gz
cd gdal-2.0.2
./configure --prefix=$GDALINST/gdal-2.0.2 $GDALOPTS
make -s -j 2
make install
fi


if [ ! -d $GDALINST/gdal-2.1.0 ]; then
cd $GDALBUILD
#
# TODO Use official release, for now use nightly
#
wget http://www.gdal.org/daily/gdal-svn-trunk-2016.03.24.tar.gz
tar -xzf gdal-svn-trunk-2016.03.24.tar.gz
cd gdal-svn-trunk-2016.03.24
./configure --prefix=$GDALINST/gdal-2.1.0 $GDALOPTS
make -s -j 2
make install
fi
Expand Down

0 comments on commit 3ff95af

Please sign in to comment.