hasql/.travis.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

env:
2014-11-18 11:38:35 +03:00
- lower_bound_dependencies=1
ghc=7.6.1
- lower_bound_dependencies=1
ghc=7.8.1
- ghc=7.6.1
- ghc=7.8.1
2014-08-03 17:48:18 +04:00
install:
2014-11-16 14:07:51 +03:00
# Set up the Shell to treat the semicolon as &&
- set -o pipefail && set -e
2014-11-18 11:38:35 +03:00
# 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
2014-11-16 14:07:51 +03:00
# 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.*";
2014-11-29 20:18:38 +03:00
cabal install "list-t == 0.2.*";
2014-11-16 14:07:51 +03:00
fi;
2014-11-18 11:38:35 +03:00
# 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
2014-11-10 19:37:46 +03:00
- cabal configure --enable-tests --enable-benchmarks
- cabal build
2014-11-18 11:38:35 +03:00
script:
2014-11-10 19:37:46 +03:00
- cabal test --show-details=always