aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2015-08-31 08:24:03 +0200
committerDaniel Gröber <dxld@darkboxed.org>2015-08-31 08:24:03 +0200
commitb6b565a3cf533e510e94ebef0543b94b0ba9d0d8 (patch)
treec57b85ae2ac7bfdb8fa201080258c1f9d101435d
parent132aeadd04d2946d95d48034aad81117a8737374 (diff)
Also build with Cabal HEAD on travis
-rw-r--r--.travis.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 85abc5a..aaa8b3d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -25,6 +25,7 @@ install:
- echo $PATH
- which cabal
- cabal install -j --only-dependencies --enable-tests
+ - git clone --depth=1 https://github.com/haskell/cabal.git /tmp/cabal
- if [ -n "$(ghc --version | awk '{ print $8 }' | sed -n '/^7.4/p')" ]; then cabal install Cabal --constraint "Cabal == 1.16.*"; fi
@@ -45,3 +46,5 @@ script:
- cabal build
- ./dist/build/cabal-helper-wrapper/cabal-helper-wrapper . dist "compiler-version" "entrypoints" "source-dirs" "ghc-options" "ghc-src-options" "ghc-pkg-options" "ghc-lang-options"
- ./dist/build/spec/spec
+ # At least try to compile with Cabal HEAD
+ - ghc -i -i/tmp/cabal/Cabal -i. ~/dev/hs/cabal-helper/CabalHelper/Main.hs -odir /tmp/cabal/Cabal -DCABAL_MAJOR=100 -DCABAL_MINOR=100