Commit 72c455a4 authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot

CI: Add ghc-in-ghci build job

This is a separate build job to the other hadrian jobs as it only takes
about 2-3 minutes to run from cold. The CI tests that the
`./hadrian/ghci` script loads `ghc/Main.hs` successfully.
parent bb684e65
......@@ -85,6 +85,32 @@ validate-x86_64-linux-deb8-hadrian:
tags:
- x86_64-linux
hadrian-ghc-in-ghci:
stage: build
image: ghcci/x86_64-linux-deb8:0.1
before_script:
# workaround for docker permissions
- sudo chown ghc:ghc -R .
- python3 .gitlab/fix-submodules.py
- git submodule sync --recursive
- git submodule update --init --recursive
- git checkout .gitmodules
tags:
- x86_64-linux
script:
- cabal update
- git clean -xdf && git submodule foreach git clean -xdf
- bash .circleci/prepare-system.sh
- 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
cache:
key: hadrian-ghci
paths:
- cabal-cache
############################################################
# Validation via Pipelines (make)
############################################################
......
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