Use sandboxes for package build

Installation of cabal and hpc may cause dependency conflicts.
This commit is contained in:
Victor Denisov 2015-09-04 11:38:15 -07:00
parent fff024b135
commit f3353c94ef

View file

@ -27,8 +27,9 @@ install:
- travis_retry cabal update
# Install the combined dependencies for this package and all other packages
# needed to reduce conflicts.
- cabal install --only-dependencies --enable-tests . hpc-coveralls
- cabal install hpc-coveralls
- cabal sandbox init
- cabal install --only-dependencies --enable-tests . hpc-coveralls
script:
- cabal configure --enable-tests --enable-coverage -v2