aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2015-08-21 10:12:33 +0200
committerDaniel Gröber <dxld@darkboxed.org>2015-08-27 02:35:41 +0200
commit890e39e4ee1c02f945b2933089c97f0975942ce9 (patch)
tree713eb661031c95c31e4a7813d8675180453fe227
parent8aaf5142f1593b1a32f220173a4196119c67c124 (diff)
Fix travis
-rw-r--r--.travis.yml5
-rw-r--r--cabal-helper.cabal2
-rw-r--r--tests/Spec.hs5
3 files changed, 4 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml
index 04b16d4..85abc5a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -44,7 +44,4 @@ script:
- cabal configure --enable-tests $WERROR
- 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"
- - cabal test
- - cabal install --enable-tests -j1 .
- - cat "dist/test/cabal-helper-"*
- - ls -l dist/test/
+ - ./dist/build/spec/spec
diff --git a/cabal-helper.cabal b/cabal-helper.cabal
index b0df657..e2ae09b 100644
--- a/cabal-helper.cabal
+++ b/cabal-helper.cabal
@@ -80,7 +80,7 @@ Executable cabal-helper-wrapper
, template-haskell
, temporary
, utf8-string
-
+ , ghc-prim
Test-Suite spec
Default-Language: Haskell2010
diff --git a/tests/Spec.hs b/tests/Spec.hs
index a334f36..35bdcc2 100644
--- a/tests/Spec.hs
+++ b/tests/Spec.hs
@@ -4,10 +4,9 @@ import System.Posix.Env (setEnv)
import System.Process
import System.Exit
import Data.Maybe
-import Data.Either
import Data.Version
import Data.Functor
-import Control.Exception
+import Control.Exception as E
import Control.Arrow
import CabalHelper.Common
@@ -73,7 +72,7 @@ main = do
compilePrivatePkgDb :: Version -> IO (Either ExitCode FilePath)
compilePrivatePkgDb cabalVer = do
- db <- installCabal defaultOptions cabalVer `catch`
+ db <- installCabal defaultOptions cabalVer `E.catch`
\(SomeException _) -> errorInstallCabal cabalVer "dist"
compileWithPkg "." (Just db) cabalVer