on master help sign in
Better Travis config?
4654163Michael Snoyman
.travis.yml+16−4
@@ -1,7 +1,19 @@
1−language: haskell
1+env:
2+ - CABALVER=1.20 GHCVER=7.8.4
3+
4+# Note: the distinction between `before_install` and `install` is not important.
5+before_install:
6+ - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
7+ - travis_retry sudo apt-get update
8+ - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
9+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
2
10
3install:
11install:
12+ - cabal --version
13+ - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
4− - cabal update
14+ - travis_retry cabal update
5− - cabal install -j
15+ - cabal install -j
6
16
17+# 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.
18+script:
7−script: stackage check
19+ - stackage check