Try using sudo: false (learned from commercialhaskell/stack#458)
commit87db240bca3dea22e0a523c23c764c8a5224742a
authorMichael Snoyman <michael@snoyman.com>
dateThu 2 Jul 2015, 18:49 (11 years ago)
parente05a921
.travis.yml+10−6
@@ -1,12 +1,16 @@
1−env:
2− - CABALVER=1.22 GHCVER=7.10.1
1+sudo: false
2+
3+addons:
4+ apt:
5+ sources:
6+ - hvr-ghc
7+ packages:
8+ - ghc-7.10.1
9+ - cabal-install-1.22
310
411# Note: the distinction between `before_install` and `install` is not important.
512before_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
13+ - export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:$PATH
1014
1115install:
1216 - cabal --version