Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2023-05-04 16:41:49 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2023-05-04 16:41:49 +0300
commit0292460fd8ffe754770c94ef2d00602c0be3078b (patch)
treecf30dacef059326f0dda3f3d6d2dffb4279c6a9d
parentfaa4192106dbbde4c25e7313d509ed4e3c5b61bf (diff)
parentc1e2f3332d8bd879169f1512b239874145dd2a98 (diff)
Merge branch 'automatic-package-builds' into 'master'
Automatically build package on all OS when dependency files are modified Closes #1057 See merge request https://gitlab.com/gitlab-org/gitlab-pages/-/merge_requests/866 Merged-by: Alessio Caiazza <acaiazza@gitlab.com> Approved-by: Alessio Caiazza <acaiazza@gitlab.com> Co-authored-by: Balasankar "Balu" C <balasankar@gitlab.com>
-rw-r--r--.gitlab/ci/test.yml19
1 files changed, 16 insertions, 3 deletions
diff --git a/.gitlab/ci/test.yml b/.gitlab/ci/test.yml
index ff373dbf..ef0fd0d2 100644
--- a/.gitlab/ci/test.yml
+++ b/.gitlab/ci/test.yml
@@ -72,7 +72,7 @@ check mocks:
script:
- make mocks-check
-package-and-qa:
+build-package-and-qa:
stage: test
trigger:
project: 'gitlab-org/build/omnibus-gitlab-mirror'
@@ -85,10 +85,23 @@ package-and-qa:
TOP_UPSTREAM_SOURCE_PROJECT: $CI_PROJECT_PATH
TOP_UPSTREAM_SOURCE_REF: $CI_COMMIT_REF_NAME
TOP_UPSTREAM_SOURCE_JOB: $CI_JOB_URL
- allow_failure: true
+ ee: "true"
rules:
- # Run only for merge requests
+ # For MRs that change dependencies, we want to automatically ensure builds
+ # aren't broken. In such cases, we don't want the QA tests to be run
+ # automatically, but still available for developers to manually run.
+ - if: '$CI_MERGE_REQUEST_IID'
+ changes:
+ - go.mod
+ - go.sum
+ variables:
+ BUILD_ON_ALL_OS: "true"
+ MANUAL_QA_TEST: "true"
+ allow_failure: false
+ # For other MRs, we still provide this job as a manual job for developers
+ # to obtain a package for testing and run QA tests.
- if: '$CI_MERGE_REQUEST_IID'
when: manual
+ allow_failure: true
- when: never
needs: []