[commit: ghc] master: CI: Add ghc-in-ghci build job (72c455a)
git at git.haskell.org
git at git.haskell.org
Tue Mar 12 13:15:23 UTC 2019
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/72c455a4a1d2dbeeed9c9d4e80cf333bdf98fcf2/ghc
>---------------------------------------------------------------
commit 72c455a4a1d2dbeeed9c9d4e80cf333bdf98fcf2
Author: Matthew Pickering <matthewtpickering at gmail.com>
Date: Sun Mar 10 17:54:59 2019 +0000
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.
>---------------------------------------------------------------
72c455a4a1d2dbeeed9c9d4e80cf333bdf98fcf2
.gitlab-ci.yml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f1f5550..13e9d8e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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)
############################################################
More information about the ghc-commits
mailing list