Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cache travis dependencies
  • Loading branch information
m-kuhn committed Mar 4, 2017
1 parent 58d0c18 commit 34643d1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -14,6 +14,7 @@ matrix:
apt: true
directories:
- $HOME/.ccache
- $HOME/depcache
timeout: 1000
compiler: clang
python: "3.3"
Expand Down
15 changes: 10 additions & 5 deletions ci/travis/linux/before_install.sh
Expand Up @@ -13,9 +13,6 @@
# #
###########################################################################

export DEBIAN_FRONTEND=noninteractive
export CORES=2

##################################################
#
# Get precompiled dependencies
Expand All @@ -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.