From 4e16af96a4f0d9dfd101ec6bf9ce9ea7d76497a4 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Thu, 22 Jun 2017 15:36:01 +0000 Subject: Add .gitlib-ci.yml to enable CI So far this just builds one of the converted systems using BuildStream. --- .gitlab-ci.yml | 55 +++++++++++++------------------------------------------ 1 file 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 -- cgit v1.2.1