Commit 0ca044fd authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot
Browse files

gitlab-ci: Move hadrian-ghc-in-ghci job first

This is a very cheap job and can catch a number of "easy" failure modes
(e.g. missing imports in the compiler). Let's run it first.
parent 4aba72d6
Pipeline #11372 failed with stages
in 792 minutes and 6 seconds
...@@ -18,13 +18,14 @@ before_script: ...@@ -18,13 +18,14 @@ before_script:
- "git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true" - "git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true"
stages: stages:
- lint # Source linting - lint # Source linting
- build # A quick smoke-test to weed out broken commits - quick-build # A very quick smoke-test to weed out broken commits
- full-build # Build all the things - build # A quick smoke-test to weed out broken commits
- cleanup # See Note [Cleanup after the shell executor] - full-build # Build all the things
- packaging # Source distribution, etc. - cleanup # See Note [Cleanup after the shell executor]
- testing # head.hackage correctness and compiler performance testing - packaging # Source distribution, etc.
- deploy # push documentation - testing # head.hackage correctness and compiler performance testing
- deploy # push documentation
# N.B.Don't run on wip/ branches, instead on run on merge requests. # N.B.Don't run on wip/ branches, instead on run on merge requests.
.only-default: &only-default .only-default: &only-default
...@@ -229,7 +230,7 @@ validate-x86_64-linux-deb9-hadrian: ...@@ -229,7 +230,7 @@ validate-x86_64-linux-deb9-hadrian:
hadrian-ghc-in-ghci: hadrian-ghc-in-ghci:
<<: *only-default <<: *only-default
stage: build stage: quick-build
image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV" image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV"
before_script: before_script:
# workaround for docker permissions # workaround for docker permissions
...@@ -237,6 +238,8 @@ hadrian-ghc-in-ghci: ...@@ -237,6 +238,8 @@ hadrian-ghc-in-ghci:
- git submodule sync --recursive - git submodule sync --recursive
- git submodule update --init --recursive - git submodule update --init --recursive
- git checkout .gitmodules - git checkout .gitmodules
variables:
GHC_FLAGS: -Werror
tags: tags:
- x86_64-linux - x86_64-linux
script: script:
......
...@@ -2,5 +2,5 @@ ...@@ -2,5 +2,5 @@
set -e set -e
GHC_FLAGS=$(TERM=dumb CABFLAGS=-v0 "hadrian/build.cabal.sh" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci "$@") GHC_FLAGS="$GHC_FLAGS $(TERM=dumb CABFLAGS=-v0 "hadrian/build.cabal.sh" tool-args -q --build-root=.hadrian_ghci --flavour=ghc-in-ghci "$@")"
ghci $GHC_FLAGS "$@" -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 ghc/Main.hs +RTS -A128m ghci $GHC_FLAGS "$@" -fno-code -fwrite-interface -hidir=.hadrian_ghci/interface -O0 ghc/Main.hs +RTS -A128m
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