env:
 - CABALVER=1.16 GHCVER=7.4.2
 - CABALVER=1.16 GHCVER=7.6.3
 - CABALVER=1.20 GHCVER=7.8.4
 - CABALVER=1.22 GHCVER=7.10.1
 - CABALVER=head GHCVER=head

matrix:
  allow_failures:
   - env: CABALVER=head GHCVER=head

before_install:
 - sudo add-apt-repository -y ppa:hvr/ghc
 - sudo apt-get update -qq

install:
 - sudo apt-get install -qq cabal-install-$CABALVER ghc-$GHCVER
 - export PATH="/opt/cabal/$CABALVER/bin:/opt/ghc/$GHCVER/bin:$PATH"
 - git clone http://github.com/markus1189/xmonad-710 xmonad-710
 - ( cd xmonad-710 && cabal install )

before_script:
 - cabal --version
 - cabal update
 - ghc --version
 - ghc-pkg list
 - cabal sandbox init
 - cabal sandbox add-source xmonad-710

script:
 - cabal install --enable-documentation
 - cabal sdist

after_script:
 - ghc-pkg list

env:
 - CABALVER=1.16 GHCVER=7.4.2
 - CABALVER=1.16 GHCVER=7.6.3
 - CABALVER=1.20 GHCVER=7.8.4
 - CABALVER=1.22 GHCVER=7.10.1
 - CABALVER=head GHCVER=head

matrix:
  allow_failures:
   - env: CABALVER=head GHCVER=head

before_install:
 - sudo add-apt-repository -y ppa:hvr/ghc
 - sudo apt-get update -qq

install:
 - sudo apt-get install -qq cabal-install-$CABALVER ghc-$GHCVER
 - export PATH="/opt/cabal/$CABALVER/bin:/opt/ghc/$GHCVER/bin:$PATH"
 - git clone http://github.com/markus1189/xmonad-710 xmonad-710

before_script:
 - cabal --version
 - cabal update
 - ghc --version
 - ghc-pkg list
 - ( cd xmonad-710 && cabal sandbox init && cabal install )
 - cabal sandbox init
 - cabal sandbox add-source xmonad-710

script:
 - cabal install --enable-documentation
 - cabal sdist

after_script:
 - ghc-pkg list

Install xmonad-710 after cabal update
Install xmonad-710 after cabal update
