Commit 608058f6 authored by judah's avatar judah
Browse files

Switch to built-in Travis Haskell support.

parent 4997d219
env: language: haskell
- GHCVER=7.0.1 CABALINSTALLVER=1.16
- GHCVER=7.0.2 CABALINSTALLVER=1.16
- GHCVER=7.0.3 CABALINSTALLVER=1.16
- GHCVER=7.0.4 CABALINSTALLVER=1.16
- GHCVER=7.2.1 CABALINSTALLVER=1.18
- GHCVER=7.2.2 CABALINSTALLVER=1.18
- GHCVER=7.4.1 CABALINSTALLVER=1.18
- GHCVER=7.4.2 CABALINSTALLVER=1.18
- GHCVER=7.6.1 CABALINSTALLVER=1.18
- GHCVER=7.6.2 CABALINSTALLVER=1.18
- GHCVER=7.6.3 CABALINSTALLVER=1.18
before_install: ghc:
- sudo add-apt-repository -y ppa:hvr/ghc - 7.0
- sudo apt-get update - 7.2
- sudo apt-get install cabal-install-$CABALINSTALLVER ghc-$GHCVER - 7.4
- export PATH=/opt/ghc/$GHCVER/bin:$PATH - 7.6
- 7.8
install:
- cabal-$CABALINSTALLVER update
- cabal-$CABALINSTALLVER install --only-dependencies
- ghc --version
script: script:
- cabal-$CABALINSTALLVER configure -v2 - cabal configure -v2
- cabal-$CABALINSTALLVER build -v2 - cabal build -v2
- cabal-$CABALINSTALLVER check - cabal check
- cabal-$CABALINSTALLVER sdist - cabal sdist
# The following scriptlet checks that the resulting source distribution can be built & installed # The following scriptlet checks that the resulting source distribution can be built & installed
- export SRC_TGZ=$(cabal-$CABALINSTALLVER info . | awk '{print $2 ".tar.gz";exit}') ; - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
cd dist/; cd dist/;
if [ -f "$SRC_TGZ" ]; then if [ -f "$SRC_TGZ" ]; then
cabal-$CABALINSTALLVER install "$SRC_TGZ"; cabal install "$SRC_TGZ";
else else
echo "expected '$SRC_TGZ' not found"; echo "expected '$SRC_TGZ' not found";
exit 1; exit 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment