2016-06-03 10:16:00 +02:00
|
|
|
###########################################################################
|
|
|
|
# before_install.sh
|
|
|
|
# ---------------------
|
2016-09-27 13:35:50 +02:00
|
|
|
# Date : March 2016
|
|
|
|
# Copyright : (C) 2016 by Matthias Kuhn
|
|
|
|
# Email : matthias at opengis dot ch
|
2016-06-03 10:16:00 +02:00
|
|
|
###########################################################################
|
|
|
|
# #
|
|
|
|
# This program is free software; you can redistribute it and/or modify #
|
|
|
|
# it under the terms of the GNU General Public License as published by #
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or #
|
|
|
|
# (at your option) any later version. #
|
|
|
|
# #
|
|
|
|
###########################################################################
|
|
|
|
|
2016-09-27 13:35:50 +02:00
|
|
|
##################################################
|
|
|
|
#
|
|
|
|
# Get precompiled dependencies
|
|
|
|
#
|
|
|
|
##################################################
|
|
|
|
|
|
|
|
pushd ${HOME}
|
|
|
|
|
2017-03-04 10:35:59 +01:00
|
|
|
# fetching data from github should be just as fast as S3
|
2017-03-21 10:31:00 +01:00
|
|
|
curl -s -S -L https://github.com/opengisch/osgeo4travis/archive/qt55bin.tar.gz | tar --strip-components=1 -xz -C /home/travis &
|
2017-03-04 11:16:11 +01:00
|
|
|
SETUP_OSGEO4W_PID=$!
|
|
|
|
|
|
|
|
mkdir /home/travis/osgeo4travis
|
2017-03-04 10:35:59 +01:00
|
|
|
|
|
|
|
# other dependencies live in a cached folder
|
|
|
|
pushd depcache
|
|
|
|
# Download newer version of cmake than in the repository
|
2017-03-04 17:17:38 +01:00
|
|
|
[[ -f cmake-3.5.0-Linux-x86_64.tar.gz ]] || curl -s -S -O https://cmake.org/files/v3.5/cmake-3.5.0-Linux-x86_64.tar.gz
|
2017-04-26 16:18:20 +02:00
|
|
|
tar --strip-components=1 -zx -f cmake-3.5.0-Linux-x86_64.tar.gz -C /home/travis/osgeo4travis
|
2016-10-19 17:11:04 +03:00
|
|
|
|
|
|
|
# Download OTB package for Processing tests
|
2017-03-04 17:17:38 +01:00
|
|
|
[[ -f OTB-5.6.0-Linux64.run ]] || curl -s -S -O https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-5.6.0-Linux64.run
|
2017-03-04 10:35:59 +01:00
|
|
|
sh ./OTB-5.6.0-Linux64.run
|
2016-10-19 17:11:04 +03:00
|
|
|
|
2017-03-04 11:16:11 +01:00
|
|
|
wait $SETUP_OSGEO4W_PID
|
|
|
|
|
2017-03-04 10:35:59 +01:00
|
|
|
popd
|
2016-09-27 13:35:50 +02:00
|
|
|
popd
|
|
|
|
|
2017-02-23 21:05:48 +01:00
|
|
|
pip install psycopg2 numpy nose2 pyyaml mock future termcolor
|