summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-06-22 15:36:01 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 10:17:09 +0000
commit4e16af96a4f0d9dfd101ec6bf9ce9ea7d76497a4 (patch)
tree37ebc3a2a3b341b88252dfb26a32204822ec3966
parentc7789475cd2717faa0eae635a6fc6a1469cb3326 (diff)
downloaddefinitions-4e16af96a4f0d9dfd101ec6bf9ce9ea7d76497a4.tar.gz
Add .gitlib-ci.yml to enable CI
So far this just builds one of the converted systems using BuildStream.
-rw-r--r--.gitlab-ci.yml55
1 files changed, 13 insertions, 42 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f04d5f37..300235ef 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,52 +1,23 @@
-image: debian:stretch
+image: samthursfield/buildstream:0.1-20170621.1
variables:
YBD_base: "/cache/ybd_base"
-stages:
- - build-3
+ # Diagnostics
+ - mount
+ - df -h
-before_script:
+ # Work around https://github.com/fedora-cloud/docker-brew-fedora/issues/14
+ - export LANG="C.UTF-8"
- export LC_ALL="C.UTF-8"
- - apt-get update -qq && apt-get install -y -qq git python-dev
- - export CI_YBD_BRANCH=`[[ "$CI_BUILD_REF_NAME" =~ ^staging/fromybd/ ]] && echo -b ${CI_BUILD_REF_NAME#staging/fromybd/}`
- - git clone https://gitlab.com/baserock/spec.git
- - git clone https://gitlab.com/baserock/ybd.git $CI_YBD_BRANCH
- - cd ybd && ./install_dependencies.sh && cd ..
- - pip install -r spec/requirements.txt
-
-genivi-demo-platform-build-64:
- stage: build-3
- script:
- - ybd/ybd.py genivi/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-3
- script:
- - ybd/ybd.py ivi/systems/ivi-system-x86_64.morph x86_64
- - ybd/ybd.py systems/initramfs-x86_64.morph x86_64
- only:
- - master
- - /^staging\/.*$/
+ # Store cache in the shared Docker volume
+ - export XDG_CACHE_HOME=/cache
-gnome-build-64:
- stage: build-3
- script:
- - ybd/ybd.py gnome/systems/gnome-system-x86_64.morph x86_64
- - ybd/ybd.py systems/initramfs-x86_64.morph x86_64
- only:
- - master
- - /^staging\/.*$/
+stages:
+ - build
-weston-qt-build-64:
- stage: build-3
+build-build-system:
+ stage: build
script:
- - ybd/ybd.py weston/systems/weston-qt5-system-x86_64.morph x86_64
- - ybd/ybd.py systems/initramfs-x86_64.morph x86_64
- only:
- - master
- - /^staging\/.*$/
+ - bst build --colors systems/build-system-content.bst