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; # Update the Cabal database - cabal update # 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; # Install the lower bound dependencies - if [ $lower_bound_dependencies -eq 1 ]; then constraint_options=( "--constraint=transformers==0.3.*" "--constraint=monad-control==0.3.*" "--constraint=text==1.0.*" "--constraint=attoparsec==0.10.*" "--constraint=time==1.4.*" ); fi; # Install the "haskell-src-exts" implicit dependency - cabal install -j ${constraint_options[@]} happy # Install the library dependencies - cabal install -j ${constraint_options[@]} --only-dependencies # Build the library - cabal build # Install the remaining dependencies - cabal install -j --only-dependencies --enable-tests --enable-benchmarks --force-reinstalls # Configure and build the remaining stuff - cabal configure --enable-tests --enable-benchmarks && cabal build script: - cabal test --show-details=always