Skip to content

Commit

Permalink
travis: try out travis caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Kuhtz committed Mar 20, 2015
1 parent 263f62d commit e11e2cd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
sudo: false
language: haskell

ghc:
- 7.6
- 7.8
Expand All @@ -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

Expand Down

0 comments on commit e11e2cd

Please sign in to comment.