From 4b6974e03a49c7341f5cc18b128366c6f70e17dc Mon Sep 17 00:00:00 2001 From: Sorunome Date: Tue, 9 Mar 2021 19:15:02 +0100 Subject: [PATCH] chore: Make merge trains possible --- .gitlab-ci.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2381f6b1..756b5c96 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,12 @@ stages: - builddocs - deploy +workflow: + rules: + - if: $CI_MERGE_REQUEST_IID + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + coverage: tags: - linux @@ -94,8 +100,8 @@ build_api_doc: artifacts: paths: - doc/api/ - only: - - main + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH build_doc: tags: @@ -109,8 +115,8 @@ build_doc: artifacts: paths: - doc-public - only: - - main + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH pages: tags: @@ -127,8 +133,8 @@ pages: artifacts: paths: - public - only: - - main + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Adds license-scanning job. Because Gitlab does not support pub.dev # we added https://github.com/oss-review-toolkit/ort