on master help sign in
Better Travis config?
commit4654163df23083bb8d45b1eca6c34648a07f24f3 authorMichael Snoyman <michael@snoyman.com> dateMon 5 Jan 2015, 14:33 (12 years ago) parente7b87bd
1 file changed+16−4
.travis.yml+16−4
.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
210
311install:
4− - cabal update
5− - cabal install -j
12+ - cabal --version
13+ - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
14+ - travis_retry cabal update
15+ - cabal install -j
616
7−script: stackage check
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:
19+ - stackage check