summaryrefslogtreecommitdiffstats
path: root/.drone.yml
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-08-18 11:25:43 -0700
committerKhem Raj <raj.khem@gmail.com>2019-08-19 14:34:05 -0700
commitd9e4cad4035edc411352def956a292b519cc297e (patch)
tree1be84c3e0c9700f4c99e04dead09f9432b1559a5 /.drone.yml
parente307f7cf265a3a16b8f7771aa2311643f670a0fb (diff)
downloadmeta-clang-d9e4cad4035edc411352def956a292b519cc297e.tar.gz
meta-clang: Enable CI on Yoe Distro's Drone
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to '.drone.yml')
-rw-r--r--.drone.yml77
1 files changed, 77 insertions, 0 deletions
diff --git a/.drone.yml b/.drone.yml
new file mode 100644
index 0000000..cdc619b
--- /dev/null
+++ b/.drone.yml
@@ -0,0 +1,77 @@
1kind: pipeline
2type: exec
3name: arm64
4
5platform:
6 os: linux
7 arch: arm64
8
9clone:
10 disable: false
11
12trigger:
13 branch:
14 - master
15 event:
16 - push
17 - pull_request
18
19steps:
20 - name: build
21 commands:
22 - git clone --recurse-submodules -j8 -b master git://github.com/YoeDistro/yoe-distro.git yoe
23 - cd yoe
24 - git checkout master
25 - git pull
26 - git submodule update --recursive --init
27 - rm -rf sources/meta-clang
28 - ln -sf `pwd`/../ sources/meta-clang
29 - export DOCKER_REPO=none
30 - export LANG=en_US.UTF-8
31 - export SSTATE_CACHE_DIR=/scratch/sstate-cache
32 - echo "Started build# $DRONE_BUILD_NUMBER"
33 - echo "sstate cache dir = $SSTATE_CACHE_DIR"
34 - echo "building $DRONE_GIT_HTTP_URL, branch $DRONE_SOURCE_BRANCH"
35 - echo export DOCKER_REPO=none > local.sh
36 - echo export LANG=en_US.UTF-8 >> local.sh
37 - echo export SSTATE_CACHE_DIR=/scratch/sstate-cache >> local.sh
38 - cp conf/local.conf.sample conf/local.conf
39 - echo SSTATE_DIR = \"$SSTATE_CACHE_DIR\" >> conf/local.conf
40 - echo TMPDIR = \"/scratch/tmp-clang-$DRONE_BUILD_NUMBER\" >> conf/local.conf
41 - echo IMAGE_CLASSES += \"testimage testsdk\" >> conf/local.conf
42 - echo INHERIT += \"report-error rm_work\" >> conf/local.conf
43 - echo TOOLCHAIN = \"clang\" >> conf/local.conf
44 - echo IMAGE_INSTALL_append = \" clang \" >> conf/local.conf
45 #- echo TESTIMAGE_AUTO_qemuall = \"1\" >> conf/local.conf
46 - /bin/bash -c ". ./qemux86-64-envsetup.sh && bitbake yoe-simple-image -cpopulate_sdk"
47 - /bin/bash -c ". ./qemux86-64-envsetup.sh && ./sources/openembedded-core/scripts/sstate-cache-management.sh -d -y"
48---
49kind: pipeline
50type: exec
51name: cleanup
52
53platform:
54 os: linux
55 arch: arm64
56
57clone:
58 disable: true
59
60trigger:
61 branch:
62 - master
63 event:
64 - push
65 - pull_request
66 status:
67 - success
68 - failure
69
70steps:
71- name: clean
72 commands:
73 - echo "Deleting tmpdir for build# $DRONE_BUILD_NUMBER"
74 - rm -rf /scratch/tmp-clang-$DRONE_BUILD_NUMBER
75
76depends_on:
77- arm64