env: - lower_bound_dependencies=1 ghc=7.6.1 - lower_bound_dependencies=1 ghc=7.8.1 - ghc=7.6.1 - ghc=7.8.1 install: # Set up the Shell to treat the semicolon as && - set -o pipefail && set -e # Install GHC and Cabal - travis_retry sudo add-apt-repository -y ppa:hvr/ghc - travis_retry sudo apt-get update - travis_retry sudo apt-get install cabal-install-1.18 ghc-$ghc - export PATH=/opt/ghc/$ghc/bin:/opt/cabal/1.18/bin:$PATH - cabal update # Install the lower bound dependencies - if [ $lower_bound_dependencies -eq 1 ]; then cabal install "transformers == 0.2.*"; cabal install "text == 1.0.*"; cabal install "attoparsec == 0.10.*"; cabal install "time == 1.4.*"; fi; # Work around the "haskell-src-exts" implicit dependency: - cabal install happy # Switch to the distro: - export pkg_name=$(cabal info . | awk '{print $2;exit}'); cabal sdist; cd dist; tar xzvf $pkg_name.tar.gz; cd $pkg_name; - cabal install --only-dependencies --enable-tests --enable-benchmarks - cabal configure --enable-tests --enable-benchmarks - cabal build script: - cabal test --show-details=always