[commit: packages/process] master: Add `cabal install` step to Travis-CI script (93f10fb)

git at git.haskell.org git at git.haskell.org
Fri Nov 1 11:18:35 UTC 2013


Repository : ssh://git@git.haskell.org/process

On branch  : master
Link       : http://git.haskell.org/packages/process.git/commitdiff/93f10fb3ba279b6e17b009531a54765850cceb3d

>---------------------------------------------------------------

commit 93f10fb3ba279b6e17b009531a54765850cceb3d
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Fri Nov 1 12:16:00 2013 +0100

    Add `cabal install` step to Travis-CI script
    
    Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>


>---------------------------------------------------------------

93f10fb3ba279b6e17b009531a54765850cceb3d
 .travis.yml   |   10 ++++++++++
 process.cabal |    2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index 36ceec3..17b5adf 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -24,3 +24,13 @@ script:
  - cabal-1.18 build
  - cabal-1.18 check
  - cabal-1.18 sdist
+
+# The following scriptlet checks that the resulting source distribution can be built & installed
+ - export SRC_TGZ=$(cabal-1.18 info . | awk '{print $2 ".tar.gz";exit}') ;
+   cd dist/;
+   if [ -f "$SRC_TGZ" ]; then
+      cabal-1.18 install "$SRC_TGZ";
+   else
+      echo "expected '$SRC_TGZ' not found";
+      exit 1;
+   fi
diff --git a/process.cabal b/process.cabal
index 31cb223..11279cf 100644
--- a/process.cabal
+++ b/process.cabal
@@ -62,7 +62,7 @@ library
 
     ghc-options: -Wall
 
-    build-depends: base      >= 4.4 && < 5,
+    build-depends: base      >= 4.4 && < 4.8,
                    directory >= 1.1 && < 1.3,
                    filepath  >= 1.2 && < 1.4,
                    deepseq   >= 1.1 && < 1.4



More information about the ghc-commits mailing list