From d9e4cad4035edc411352def956a292b519cc297e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 18 Aug 2019 11:25:43 -0700 Subject: meta-clang: Enable CI on Yoe Distro's Drone Signed-off-by: Khem Raj --- .drone.yml | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 79 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..cdc619b --- /dev/null +++ b/.drone.yml @@ -0,0 +1,77 @@ +kind: pipeline +type: exec +name: arm64 + +platform: + os: linux + arch: arm64 + +clone: + disable: false + +trigger: + branch: + - master + 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-clang + - ln -sf `pwd`/../ sources/meta-clang + - 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 TMPDIR = \"/scratch/tmp-clang-$DRONE_BUILD_NUMBER\" >> 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 IMAGE_INSTALL_append = \" clang \" >> conf/local.conf + #- echo TESTIMAGE_AUTO_qemuall = \"1\" >> conf/local.conf + - /bin/bash -c ". ./qemux86-64-envsetup.sh && bitbake yoe-simple-image -cpopulate_sdk" + - /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.md b/README.md index 72849f0..99f7b7f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://drone.yoedistro.org/api/badges/kraj/meta-clang/status.svg)](https://drone.yoedistro.org/kraj/meta-clang) + # meta-clang (a C language family frontend and LLVM compiler backend) This layer provides [clang/llvm](http://clang.llvm.org/) as alternative to your system -- cgit v1.2.3-54-g00ecf