Attempt to fix ghci test on MacOS (#3986)

On CI GHCi occasionally seems to get stuck on MacOS. I have no clue why that is
and I am unable to reproduce this locally. However, based on some
testing on CI this change seems to fix this and it simplifies things. The
ghci script was originally used when we still had the fat repl target
but now that we only load damlc, there is no need for this anymore.

CHANGELOG_BEGIN
CHANGELOG_END
This commit is contained in:
Moritz Kiefer 2020-01-09 08:44:48 +01:00 committed by mergify[bot]
parent e75b98351c
commit 7f387ba03e

View File

@ -37,12 +37,7 @@ function cleanup {
rm -rf "$GHCI_SCRIPT"
}
trap cleanup EXIT
cat <<EOF > $GHCI_SCRIPT
:m DA.Cli.Damlc
:main --help
:quit
EOF
da-ghci --data yes //compiler/damlc:damlc -ghci-script $GHCI_SCRIPT -e '()'
da-ghci --data yes //compiler/damlc:damlc -e ':main --help'
# Check that our IDE works on our codebase
./compiler/ghcide-daml.sh compiler/damlc/exe/Main.hs 2>&1 | tee ide-log
grep -q "1 file worked, 0 files failed" ide-log