Commit 200d65ef authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot

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.
parent d763b2e7
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment