[oe-commits] [meta-openembedded] 01/04: drone: Add CI support
git at git.openembedded.org
git at git.openembedded.org
Sun Dec 15 19:17:33 UTC 2019
This is an automated email from the git hooks/post-receive script.
khem pushed a commit to branch master-next
in repository meta-openembedded.
commit 68795c65de4270a66ac7fb242e7918b15640bec7
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Thu Nov 28 06:46:41 2019 -0800
drone: Add CI support
Add drone build Badge
Add .drone.yml for drone CI support
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
.drone.yml | 75 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
README | 2 ++
2 files changed, 77 insertions(+)
diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..34ec4e5
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,75 @@
+kind: pipeline
+type: exec
+name: arm64
+
+platform:
+ os: linux
+ arch: arm64
+
+clone:
+ disable: false
+
+trigger:
+ branch:
+ - yoe/mut
+ event:
+ - push
+ - pull_request
+
+steps:
+ - name: build
+ commands:
+ - git clone --recurse-submodules -j8 -b master git://github.com/YoeDistro/yoe-distro.git yoe
+ - cd yoe
+ - git checkout master
+ - git pull
+ - git submodule update --recursive --init
+ - rm -rf sources/meta-openembedded
+ - ln -sf `pwd`/../ sources/meta-openembedded
+ - export DOCKER_REPO=none
+ - export LANG=en_US.UTF-8
+ - export SSTATE_CACHE_DIR=/scratch/sstate-cache
+ - echo "Started build# $DRONE_BUILD_NUMBER"
+ - echo "sstate cache dir = $SSTATE_CACHE_DIR"
+ - echo "building $DRONE_GIT_HTTP_URL, branch $DRONE_SOURCE_BRANCH"
+ - echo export DOCKER_REPO=none > local.sh
+ - echo export LANG=en_US.UTF-8 >> local.sh
+ - echo export SSTATE_CACHE_DIR=/scratch/sstate-cache >> local.sh
+ - cp conf/local.conf.sample conf/local.conf
+ - echo SSTATE_DIR = \"$SSTATE_CACHE_DIR\" >> conf/local.conf
+ - echo IMAGE_CLASSES += \"testimage testsdk\" >> conf/local.conf
+ - echo INHERIT += \"report-error rm_work\" >> conf/local.conf
+ - echo TOOLCHAIN = \"clang\" >> conf/local.conf
+ #- echo TESTIMAGE_AUTO_qemuall = \"1\" >> conf/local.conf
+ - /bin/bash -c ". ./qemux86-64-envsetup.sh && bitbake -k core-image-sato-sdk-ptest yoe-qt5-wayland-image"
+ - /bin/bash -c ". ./qemux86-64-envsetup.sh && ./sources/openembedded-core/scripts/sstate-cache-management.sh -d -y"
+---
+kind: pipeline
+type: exec
+name: cleanup
+
+platform:
+ os: linux
+ arch: arm64
+
+clone:
+ disable: true
+
+trigger:
+ branch:
+ - master
+ event:
+ - push
+ - pull_request
+ status:
+ - success
+ - failure
+
+steps:
+- name: clean
+ commands:
+ - echo "Deleting tmpdir for build# $DRONE_BUILD_NUMBER"
+ - rm -rf /scratch/tmp-clang-$DRONE_BUILD_NUMBER
+
+depends_on:
+- arm64
diff --git a/README b/README
index 7318f09..d1297b0 100644
--- a/README
+++ b/README
@@ -1,3 +1,5 @@
+[![Build Status](https://drone.yoedistro.org/api/badges/YoeDistro/meta-openembedded/status.svg)](https://drone.yoedistro.org/YoeDistro/meta-openembedded)
+
Collection of layers for the OE-core universe
Main layer maintainer: Khem Raj <raj.khem at gmail.com>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list