Skip to content

Commit d137b28

Browse files
author
Lars Kuhtz
committed
travis: try out travis caching
1 parent 263f62d commit d137b28

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
sudo: false
22
language: haskell
3+
34
ghc:
45
- 7.6
56
- 7.8
@@ -10,6 +11,17 @@ env:
1011
- FLAGS=normalize-v4-signature-date CONSTRAINTS='time>=1.5'
1112
- FLAGS=-normalize-v4-signature-date CONSTRAINTS='time>=1.5'
1213

14+
cache:
15+
directories:
16+
- $HOME/.ghc-time-1.4
17+
- $HOME/.cabal-time-1.4
18+
- $HOME/.ghc-time-1.5
19+
- $HOME/.cabal-time-1.5
20+
21+
pre_install:
22+
- 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
23+
- 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
24+
1325
install:
1426
- travis_retry cabal install --only-dependencies --enable-tests --flags="$FLAGS" --constraint="$CONSTRAINTS" --force-reinstalls
1527

0 commit comments

Comments
 (0)