From abb12a81b1b5dc9ea88d42564e9a189c4caec151 Mon Sep 17 00:00:00 2001 From: Matthew Pickering Date: Sun, 17 Mar 2019 10:24:31 +0000 Subject: 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. --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d9ebe2708..5e43a531c2 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: -- cgit v1.2.1