Use stack for downloading GHC #734

This commit is contained in:
Michael Snoyman 2015-08-12 12:02:05 +03:00
parent 4fae0e36b1
commit 7762ee4688

View File

@ -1,25 +1,27 @@
sudo: false
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.1
- cabal-install-1.22
# Note: the distinction between `before_install` and `install` is not important.
before_install:
- export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:$PATH
language: haskell
install:
- cabal --version
- echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
- travis_retry cabal update
# Get stackage-curator
- wget https://s3.amazonaws.com/stackage-travis/stackage-curator/stackage-curator.bz2
- bunzip2 stackage-curator.bz2
- chmod +x stackage-curator
# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
# Get stack
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.3.0/stack-0.1.3.0-x86_64-linux-gmp4.gz | gunzip > stack
- chmod +x stack
# Install GHC and cabal-install
- ./stack setup 7.10
- ./stack --resolver nightly-2015-08-12 build cabal-install
# Update the index
- travis_retry ./stack exec cabal update
script:
- ./stackage-curator check
- ./stack --resolver 7.10 exec ./stackage-curator check
cache:
directories:
- $HOME/.stack