aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml23
1 files changed, 11 insertions, 12 deletions
diff --git a/.travis.yml b/.travis.yml
index c16b1709..7fb97c8e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,18 +1,17 @@
-language: haskell
+sudo: false
-env:
- # - GHCVER=7.8.2
- # - GHCVER=7.8.3
- - GHCVER=7.10.2
+matrix:
+ include:
+ - env: CABALVER=head GHCVER=head
+ addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
+
+ allow_failures:
+ - env: CABALVER=head GHCVER=head
before_install:
- - sudo add-apt-repository -y ppa:hvr/ghc
- - sudo apt-get update
- - sudo apt-get install ghc-$GHCVER
- - export PATH=/opt/ghc/$GHCVER/bin:$PATH
- - sudo apt-get install cabal-install-1.22
- - export PATH=/opt/cabal/1.22/bin:$PATH
+ - export PATH=$HOME/.cabal/bin:/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- cabal --version
+ - cabal update
- cd haddock-library
- cabal install --only-dependencies --enable-tests
- cabal install doctest
@@ -24,4 +23,4 @@ before_install:
- (cd haddock-api/ && cabal install --only-dependencies --enable-tests && cabal configure --enable-tests && cabal build && cabal test && cabal install)
script:
- - cabal configure --enable-tests && cabal build && cabal test
+ - cabal configure --enable-tests && cabal build && cabal test \ No newline at end of file