Enable travis caching for cabal dependencies
This commit is contained in:
parent
6e28e07ca9
commit
20bccae1fc
19
.travis.yml
19
.travis.yml
@ -4,8 +4,23 @@ ghc:
|
|||||||
- 7.6
|
- 7.6
|
||||||
- 7.8
|
- 7.8
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- zlib1g-dev
|
||||||
|
|
||||||
|
cache:
|
||||||
|
apt: true
|
||||||
|
directories:
|
||||||
|
- ~/.cabal
|
||||||
|
- ~/.ghc
|
||||||
|
|
||||||
|
before_cache:
|
||||||
|
- rm -f $HOME/.cabal/logs $HOME/.cabal/packages/*/build-reports.log
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get install zlib1g-dev
|
|
||||||
- cabal update
|
- cabal update
|
||||||
# - ( $CABAL122 && cabal install cabal-install --constraint "Cabal >= 1.22" && ghc-pkg unregister Cabal ) || true
|
# - ( $CABAL122 && cabal install cabal-install --constraint "Cabal >= 1.22" && ghc-pkg unregister Cabal ) || true
|
||||||
- echo $PATH
|
- echo $PATH
|
||||||
@ -13,6 +28,8 @@ install:
|
|||||||
- if [ -n "$(cabal --version | grep 'Cabal library' | awk '{ print $3 }' | tail -n1 | sed -n '/^1.18/p')" ]; then cabal install cabal-install --constraint "Cabal == 1.18.* && > 1.18.0"; fi
|
- if [ -n "$(cabal --version | grep 'Cabal library' | awk '{ print $3 }' | tail -n1 | sed -n '/^1.18/p')" ]; then cabal install cabal-install --constraint "Cabal == 1.18.* && > 1.18.0"; fi
|
||||||
- cabal install happy
|
- cabal install happy
|
||||||
- happy --version
|
- happy --version
|
||||||
|
- ls -lR ~/.ghc
|
||||||
|
- ls -lR ~/.cabal
|
||||||
- cabal install -j --only-dependencies --enable-tests
|
- cabal install -j --only-dependencies --enable-tests
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
Loading…
Reference in New Issue
Block a user