Try using sudo: false (learned from commercialhaskell/stack#458)

This commit is contained in:
Michael Snoyman 2015-07-02 18:49:08 +03:00
parent e05a9218eb
commit 87db240bca

View File

@ -1,12 +1,16 @@
env:
- CABALVER=1.22 GHCVER=7.10.1
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:
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- export PATH=/opt/ghc/7.10.1/bin:/opt/cabal/1.22/bin:$PATH
install:
- cabal --version