[commit: packages/unix] master: Add `cabal install` step to Travis CI script (5ccab3c)

git at git.haskell.org git at git.haskell.org
Fri Nov 8 15:18:30 UTC 2013


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/5ccab3c64a2e37903111755c6b99795c410bed0e/unix

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

commit 5ccab3c64a2e37903111755c6b99795c410bed0e
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Fri Nov 8 16:18:17 2013 +0100

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


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

5ccab3c64a2e37903111755c6b99795c410bed0e
 .travis.yml |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index af63a5e..2bab2ff 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -21,3 +21,11 @@ script:
  - cabal-1.18 build
  - cabal-1.18 check
  - cabal-1.18 sdist
+ - 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
\ No newline at end of file



More information about the ghc-commits mailing list