Skip to content
Permalink
Browse files

Cache travis dependencies

  • Loading branch information
m-kuhn committed Mar 4, 2017
1 parent 58d0c18 commit 34643d10f6a7809b4001f0c57dedd877e41e4bf4
Showing with 11 additions and 5 deletions.
  1. +1 −0 .travis.yml
  2. +10 −5 ci/travis/linux/before_install.sh
@@ -14,6 +14,7 @@ matrix:
apt: true
directories:
- $HOME/.ccache
- $HOME/depcache
timeout: 1000
compiler: clang
python: "3.3"
@@ -13,9 +13,6 @@
# #
###########################################################################

export DEBIAN_FRONTEND=noninteractive
export CORES=2

##################################################
#
# Get precompiled dependencies
@@ -24,12 +21,20 @@ export CORES=2

pushd ${HOME}

# fetching data from github should be just as fast as S3
curl -L https://github.com/opengisch/osgeo4travis/archive/qt5bin.tar.gz | tar -xzC /home/travis --strip-components=1
curl -L https://cmake.org/files/v3.5/cmake-3.5.0-Linux-x86_64.tar.gz | tar --strip-components=1 -zxC /home/travis/osgeo4travis

# other dependencies live in a cached folder
pushd depcache
# Download newer version of cmake than in the repository
[[ -f cmake-3.5.0-Linux-x86_64.tar.gz ]] || curl -O https://cmake.org/files/v3.5/cmake-3.5.0-Linux-x86_64.tar.gz
tar --strip-components=1 -zx -f cmake-3.5.0-Linux-x86_64.tar.gz -C /home/travis/osgeo4travis

# Download OTB package for Processing tests
wget https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-5.6.0-Linux64.run -O /home/travis/OTB-5.6.0-Linux64.run && sh /home/travis/OTB-5.6.0-Linux64.run
[[ -f OTB-5.6.0-Linux64.run ]] || curl -O https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-5.6.0-Linux64.run
sh ./OTB-5.6.0-Linux64.run

popd
popd

pip install psycopg2 numpy nose2 pyyaml mock future termcolor

0 comments on commit 34643d1

Please sign in to comment.
You can’t perform that action at this time.