summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2016-10-27 10:39:15 (GMT)
committerJavier Jardón <jjardon@gnome.org>2016-10-27 10:39:15 (GMT)
commitbfed7b8ac624a02df62f3e7c866429cc5d2892db (patch)
tree3692b7047f2a3823e542df48d3f22d02eae57204
parent2198aef721c607bba47e4f3784b5aec7987ca5b1 (diff)
downloaddefinitions-bfed7b8ac624a02df62f3e7c866429cc5d2892db.tar.gz
.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
-rw-r--r--.gitlab-ci.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index bad5699..4146357 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\/.*$/