diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2019-03-17 10:24:31 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-03-25 14:02:25 -0400 |
commit | 200d65ef41efda8ff2b524f7a15c14620d6a57b9 (patch) | |
tree | 0940563da9dfedc2e2654a612a432d476cdad958 /.gitlab-ci.yml | |
parent | d763b2e7097a2dc14f4917d7e9f0cbd5c7085961 (diff) | |
download | haskell-200d65ef41efda8ff2b524f7a15c14620d6a57b9.tar.gz |
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.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ba9019151b..a30c407d03 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -149,8 +149,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: |