From bfed7b8ac624a02df62f3e7c866429cc5d2892db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 27 Oct 2016 11:39:15 +0100 Subject: .gitlab-ci.yml: Only build the whole set of system in the master and staging branches In this way, individual developers can test specific system changing the .gitlab-co.yml file in their own branches without the need of building the whole set of system Everything should be built when sending a branch for merge (in a staging/ branch) and in when it gets actually merged (master) Change-Id: I94a60daa05b768be72eb0bc69070694939638dab --- .gitlab-ci.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bad56998..41463574 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,10 @@ build-system-x86_64-chroot-build: stage: build script: - ybd/ybd.py systems/build-system-x86_64-chroot.morph x86_64 + only: + - master + - /^staging\/.*$/ + build-system-x86_64-chroot-deploy: stage: deploy dependencies: @@ -20,6 +24,9 @@ build-system-x86_64-chroot-deploy: name: "${CI_BUILD_NAME}-${CI_BUILD_REF}" paths: - build-system-x86_64-chroot.tar + only: + - master + - /^staging\/.*$/ build-system-armv7lhf-rootfs-build: stage: build @@ -27,59 +34,92 @@ build-system-armv7lhf-rootfs-build: - sudo ybd/ybd.py systems/build-system-armv7lhf-rootfs.morph armv7lhf tags: - armv7l + only: + - master + - /^staging\/.*$/ devel-build-64: stage: build script: - ybd/ybd.py systems/devel-system-x86_64-generic.morph x86_64 + only: + - master + - /^staging\/.*$/ genivi-baseline-build-64: stage: build script: - ybd/ybd.py systems/genivi-baseline-system-x86_64-generic x86_64 - ybd/ybd.py systems/initramfs-x86_64.morph x86_64 + only: + - master + - /^staging\/.*$/ genivi-demo-platform-build-64: stage: build script: - ybd/ybd.py systems/genivi-demo-platform-x86_64-generic.morph x86_64 - ybd/ybd.py systems/initramfs-x86_64.morph x86_64 + only: + - master + - /^staging\/.*$/ ivi-build-64: stage: build script: - ybd/ybd.py systems/ivi-system-x86_64.morph x86_64 - ybd/ybd.py systems/initramfs-x86_64.morph x86_64 + only: + - master + - /^staging\/.*$/ gnome-build-64: stage: build script: - ybd/ybd.py systems/gnome-system-x86_64.morph x86_64 - ybd/ybd.py systems/initramfs-x86_64.morph x86_64 + only: + - master + - /^staging\/.*$/ minimal-build-64: stage: build script: - ybd/ybd.py systems/minimal-system-x86_64-generic.morph x86_64 + only: + - master + - /^staging\/.*$/ openstack-build-64: stage: build script: - ybd/ybd.py systems/openstack-system-x86_64.morph x86_64 + only: + - master + - /^staging\/.*$/ trove-build-64: stage: build script: - ybd/ybd.py systems/trove-system-x86_64.morph x86_64 + only: + - master + - /^staging\/.*$/ weston-build-64: stage: build script: - ybd/ybd.py systems/weston-system-x86_64-generic.morph x86_64 - ybd/ybd.py systems/initramfs-x86_64.morph x86_64 + only: + - master + - /^staging\/.*$/ weston-qt-build-64: stage: build script: - ybd/ybd.py weston-qt5-system-x86_64.morph x86_64 - ybd/ybd.py systems/initramfs-x86_64.morph x86_64 + only: + - master + - /^staging\/.*$/ -- cgit v1.2.1