]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
.gitlab-ci.yml: make use of .pre stage
authorDaiki Ueno <ueno@gnu.org>
Sat, 18 Mar 2023 01:52:13 +0000 (10:52 +0900)
committerDaiki Ueno <ueno@gnu.org>
Sat, 18 Mar 2023 02:18:31 +0000 (11:18 +0900)
Jobs in the .pre stage run before any other jobs:
https://docs.gitlab.com/ee/ci/yaml/index.html#stage-pre

As commit-check is lightweight and a prerequisite for merging MRs,
this moves it from the test stage to .pre.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
.gitlab-ci.yml

index a3f7ad1423fc2826227590f536a93f6bf30f994c..2babcfc8ac35285f7a89f88c4fa8b8af64d86265 100644 (file)
@@ -156,9 +156,10 @@ default:
 ##############################################################################
 
 commit-check:
-  stage: test
+  stage: .pre
+  variables:
+    GIT_SUBMODULE_STRATEGY: none
   image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$ALPINE_BASE_BUILD
-  needs: [] # can be run immediately
   before_script: []
   after_script: []
   except: