Commit a9937ab5 authored by Stevan Radaković's avatar Stevan Radaković
Browse files

.ostc-ci/gitlab-ci.yml: Make hisilicon builds manual on Draft/WIP MRs



Hisilicon builds should only run on regular merge requests. Otherwise
they will run on demand.
Signed-off-by: Stevan Radaković's avatarStevan Radaković <stevan.radakovic@linaro.org>
parent 9be8a23d
Pipeline #7278 failed with stages
in 12 minutes and 39 seconds
......@@ -214,6 +214,16 @@ build-hispark-pegasus:
variables:
TARGET: wifiiot_hispark_pegasus
CHIP: hispark_pegasus
rules:
# Run only manually if the MR is Draft/WiP
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i'
when: manual
# Run the build when a merge request is created.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
# Run the build when a tag is placed.
- if: '$CI_COMMIT_TAG'
# Run the build for scheduled pipelines.
- if: '$CI_PIPELINE_SOURCE == "schedule"'
build-hispark_taurus:
extends: .build-gitee
......@@ -222,6 +232,16 @@ build-hispark_taurus:
UBOOT: u-boot-hi3516dv300.bin
CHIP: hispark_taurus
IMAGE: vfat
rules:
# Run only manually if the MR is Draft/WiP
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i'
when: manual
# Run the build when a merge request is created.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
# Run the build when a tag is placed.
- if: '$CI_COMMIT_TAG'
# Run the build for scheduled pipelines.
- if: '$CI_PIPELINE_SOURCE == "schedule"'
build-hispark_aries:
extends: .build-gitee
......@@ -230,6 +250,16 @@ build-hispark_aries:
UBOOT: u-boot-hi3518ev300.bin
CHIP: hispark_aries
IMAGE: jffs2
rules:
# Run only manually if the MR is Draft/WiP
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TITLE =~ /^(wip|draft):.*/i'
when: manual
# Run the build when a merge request is created.
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
# Run the build when a tag is placed.
- if: '$CI_COMMIT_TAG'
# Run the build for scheduled pipelines.
- if: '$CI_PIPELINE_SOURCE == "schedule"'
##
## Get the results back from LAVA.
......
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