2014-01-08 07:10:26 +00:00
|
|
|
env:
|
|
|
|
- GHCVER=7.4.2
|
|
|
|
- GHCVER=7.6.3
|
2014-04-18 02:43:06 +00:00
|
|
|
- GHCVER=7.8.2
|
2014-01-08 07:10:26 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- sudo add-apt-repository -y ppa:hvr/ghc
|
|
|
|
- sudo apt-get update
|
2014-07-04 04:00:21 +00:00
|
|
|
- sudo apt-get install cabal-install-1.18 ghc-$GHCVER happy-1.19.3
|
|
|
|
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.18/bin:/opt/happy/1.19.3/bin:$PATH
|
2014-01-08 07:10:26 +00:00
|
|
|
|
|
|
|
install:
|
2014-05-01 01:07:10 +00:00
|
|
|
- cabal update
|
|
|
|
- cabal install --only-dependencies --enable-tests
|
2014-01-08 07:10:26 +00:00
|
|
|
|
|
|
|
script:
|
2014-05-01 01:07:10 +00:00
|
|
|
- cabal configure --enable-tests
|
|
|
|
- cabal build
|
|
|
|
- cabal test
|
|
|
|
- cabal check
|
|
|
|
- cabal sdist
|
2014-01-08 07:10:26 +00:00
|
|
|
# The following scriptlet checks that the resulting source distribution can be built & installed
|
2014-05-01 01:07:10 +00:00
|
|
|
- export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}');
|
2014-01-08 07:10:26 +00:00
|
|
|
cd dist/;
|
|
|
|
if [ -f "$SRC_TGZ" ]; then
|
2014-05-01 01:07:10 +00:00
|
|
|
cabal install --enable-tests "$SRC_TGZ";
|
2014-01-08 07:10:26 +00:00
|
|
|
else
|
|
|
|
echo "expected '$SRC_TGZ' not found";
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- env: GHCVER=head
|