From 0ca044fd01df706bff69032cca525e78e2e3f100 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sun, 13 Oct 2019 11:38:52 -0400 Subject: 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. --- .gitlab-ci.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4499b1801b..01cf16cb6d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,13 +18,14 @@ before_script: - "git fetch https://gitlab.haskell.org/ghc/ghc-performance-notes.git refs/notes/perf:refs/notes/perf || true" stages: - - lint # Source linting - - build # A quick smoke-test to weed out broken commits - - full-build # Build all the things - - cleanup # See Note [Cleanup after the shell executor] - - packaging # Source distribution, etc. - - testing # head.hackage correctness and compiler performance testing - - deploy # push documentation + - lint # Source linting + - quick-build # A very quick smoke-test to weed out broken commits + - build # A quick smoke-test to weed out broken commits + - full-build # Build all the things + - cleanup # See Note [Cleanup after the shell executor] + - packaging # Source distribution, etc. + - 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. .only-default: &only-default @@ -229,7 +230,7 @@ validate-x86_64-linux-deb9-hadrian: hadrian-ghc-in-ghci: <<: *only-default - stage: build + stage: quick-build image: "registry.gitlab.haskell.org/ghc/ci-images/x86_64-linux-deb9:$DOCKER_REV" before_script: # workaround for docker permissions @@ -237,6 +238,8 @@ hadrian-ghc-in-ghci: - git submodule sync --recursive - git submodule update --init --recursive - git checkout .gitmodules + variables: + GHC_FLAGS: -Werror tags: - x86_64-linux script: -- cgit v1.2.1