@@ -1,25 +1,27 @@
11sudo: false
22
3−addons:
4− apt:
5− sources:
6− - hvr-ghc
7− packages:
8− - ghc-7.10.1
9− - cabal-install-1.22
10−
11−# Note: the distinction between `before_install` and `install` is not important.
12−before_install:
13− - export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:$PATH
3+language: haskell
144
155install:
16− - cabal --version
17− - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
18− - travis_retry cabal update
6+ # Get stackage-curator
197 - wget https://s3.amazonaws.com/stackage-travis/stackage-curator/stackage-curator.bz2
208 - bunzip2 stackage-curator.bz2
219 - chmod +x stackage-curator
2210
23−# 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.
11+ # Get stack
12+ - 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
13+ - chmod +x stack
14+
15+ # Install GHC and cabal-install
16+ - ./stack setup 7.10
17+ - ./stack --resolver nightly-2015-08-12 build cabal-install
18+
19+ # Update the index
20+ - travis_retry ./stack exec cabal update
21+
2422script:
25− - ./stackage-curator check
23+ - ./stack --resolver 7.10 exec ./stackage-curator check
24+
25+cache:
26+ directories:
27+ - $HOME/.stack