[commit: ghc] wip/fix-ghci-ci: Check hadrian/ghci.sh script output to determine pass/fail (abb12a8)

git at git.haskell.org git at git.haskell.org
Sun Mar 17 19:08:07 UTC 2019


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

On branch  : wip/fix-ghci-ci
Link       : http://ghc.haskell.org/trac/ghc/changeset/abb12a81b1b5dc9ea88d42564e9a189c4caec151/ghc

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

commit abb12a81b1b5dc9ea88d42564e9a189c4caec151
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date:   Sun Mar 17 10:24:31 2019 +0000

    Check hadrian/ghci.sh script output to determine pass/fail
    
    ghci always exits with exit code 0 so you have to check the output
    to see if the modules loaded succesfully.


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

abb12a81b1b5dc9ea88d42564e9a189c4caec151
 .gitlab-ci.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9d9ebe2..5e43a53 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -109,8 +109,8 @@ hadrian-ghc-in-ghci:
     - if [[ -d ./cabal-cache ]]; then cp -R ./.cabal-cache ~/.cabal-cache; fi
     - ./boot
     - ./configure $CONFIGURE_ARGS
-    # Load ghc-in-ghci then immediately exit
-    - echo ":q" | hadrian/ghci.sh
+    # Load ghc-in-ghci then immediately exit and check the modules loaded
+    - echo ":q" | hadrian/ghci.sh | tail -n2 | grep "Ok,"
   cache:
     key: hadrian-ghci
     paths:



More information about the ghc-commits mailing list