Fix-up travis-CI script
authorHerbert Valerio Riedel <hvr@gnu.org>
Tue, 25 Mar 2014 13:13:34 +0000 (14:13 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Tue, 25 Mar 2014 13:13:34 +0000 (14:13 +0100)
Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
.travis.yml

index 4d77888..1ca0118 100644 (file)
@@ -28,15 +28,13 @@ install:
  - cabal-1.18 update
 
 script:
- - cabal-1.18 install random
  - cabal-1.18 configure -v2
  - 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";
+   if [ -f "dist/$SRC_TGZ" ]; then
+      cabal-1.18 install "dist/$SRC_TGZ";
    else
       echo "expected '$SRC_TGZ' not found";
       exit 1;