forked from kraj/meta-clang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
76 lines (67 loc) · 1.95 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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 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