From e11e2cdf36b4843613cac188190e4ba3bdd5a997 Mon Sep 17 00:00:00 2001 From: Lars Kuhtz Date: Thu, 19 Mar 2015 15:57:46 -0700 Subject: [PATCH] travis: try out travis caching --- .travis.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.travis.yml b/.travis.yml index dd53059..dba1889 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ sudo: false language: haskell + ghc: - 7.6 - 7.8 @@ -10,6 +11,17 @@ env: - FLAGS=normalize-v4-signature-date CONSTRAINTS='time>=1.5' - FLAGS=-normalize-v4-signature-date CONSTRAINTS='time>=1.5' +cache: + directories: + - $HOME/.ghc-time-1.4 + - $HOME/.cabal-time-1.4 + - $HOME/.ghc-time-1.5 + - $HOME/.cabal-time-1.5 + +before_install: + - if [ "$CONSTRAINTS" = 'time<1.5' ] ; then ln -s $HOME/.ghc-time-1.4 $HOME/.ghc ; else ln -s $HOME/.ghc-time-1.5 $HOME/.ghc ; fi + - if [ "$CONSTRAINTS" = 'time<1.5' ] ; then ln -s $HOME/.cabal-time-1.4 $HOME/.cabal ; else ln -s $HOME/.cabal-time-1.5 $HOME/.cabal ; fi + install: - travis_retry cabal install --only-dependencies --enable-tests --flags="$FLAGS" --constraint="$CONSTRAINTS" --force-reinstalls