[commit: packages/directory] improve-tests-for-real: Update .travis.yml for new test system (5553a46)

git at git.haskell.org git at git.haskell.org
Thu Mar 19 11:37:50 UTC 2015


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

On branch  : improve-tests-for-real
Link       : http://ghc.haskell.org/trac/ghc/changeset/5553a46f01d01cca7f3e86f456e1a5182a6a78a6/directory

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

commit 5553a46f01d01cca7f3e86f456e1a5182a6a78a6
Author: Phil Ruffwind <rf at rufflewind.com>
Date:   Mon Mar 2 08:34:59 2015 -0500

    Update .travis.yml for new test system


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

5553a46f01d01cca7f3e86f456e1a5182a6a78a6
 .travis.yml | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 05ed4e4..3848906 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -20,7 +20,7 @@ before_install:
 
 install:
  - travis_retry cabal update
- - cabal install --only-dependencies
+ - cabal install --enable-tests --only-dependencies
  - ghc --version
 
 script:
@@ -29,13 +29,5 @@ script:
  - cabal build
  - cabal check
  - cabal sdist
- - cabal test
-# The following scriptlet checks that the resulting source distribution can be built & installed
- - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
-   cd dist/;
-   if [ -f "$SRC_TGZ" ]; then
-      cabal install --force-reinstalls "$SRC_TGZ";
-   else
-      echo "expected '$SRC_TGZ' not found";
-      exit 1;
-   fi
+ - cabal test --show-details=streaming --test-options=WAY=
+ - cabal install --force-reinstalls --run-tests dist/*-*.tar.gz



More information about the ghc-commits mailing list