blob: 526102b28a7d50e3ba45e7c57d4fc95f5c67d9cb (
plain)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
- job:
name: zephyr-upstream-arm
project-type: matrix
defaults: global
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
- job-workspace
linaro:
- job-read
- job-extended-read
- job-build
- job-cancel
- build-discarder:
days-to-keep: 30
num-to-keep: 30
artifact-num-to-keep: 30
parameters:
- string:
name: BRANCH
default: 'arm'
- string:
name: LAVA_SERVER
default: 'validation.linaro.org/RPC2/'
disabled: false
node: master
child-workspace: .
display-name: 'Zephyr project (arm)'
axes:
- axis:
type: slave
name: label
values:
- docker-xenial-amd64-13
- axis:
type: user-defined
name: ZEPHYR_GCC_VARIANT
values:
- gccarmemb
- zephyr
- axis:
type: user-defined
name: PLATFORM
values:
- 96b_carbon
- 96b_nitrogen
- arduino_101
- arduino_101_ble
- arduino_due
- bbc_microbit
- cc3200_launchxl
- frdm_k64f
- hexiwear_k64
- nrf51_blenano
- nrf51_pca10028
- nrf52_pca10040
- nucleo_f103rb
- nucleo_f401re
- nucleo_l476rg
- olimexino_stm32
- qemu_cortex_m3
- qemu_x86
- quark_se_c1000_ble
- stm32_mini_a15
- v2m_beetle
execution-strategy:
combination-filter: |
ZEPHYR_GCC_VARIANT=="zephyr" || (ZEPHYR_GCC_VARIANT=="gccarmemb" && !(PLATFORM=="arduino_101" || PLATFORM=="qemu_x86"))
wrappers:
- timestamps
builders:
- shell:
!include-raw: zephyr-upstream/builders.sh
- inject:
properties-file: env_var_parameters
- build-name-setter:
template: '#${BUILD_NUMBER}-${GIT_COMMIT}'
macro: true
- linaro-publish-token
- shell: |
#!/bin/bash
# Publish
test -d ${HOME}/bin || mkdir ${HOME}/bin
wget -q https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
time python ${HOME}/bin/linaro-cp.py \
--api_version 3 \
--link-latest \
out/${PLATFORM} components/kernel/zephyr/${BRANCH}/${ZEPHYR_GCC_VARIANT}/${PLATFORM}/${BUILD_NUMBER}
rm -rf out
- shell: |
#!/bin/bash -e
case "${PLATFORM}" in
arduino_101)
export DEVICE_TYPE=arduino101
;;
frdm_k64f)
export DEVICE_TYPE=frdm-k64f
;;
qemu_cortex_m3)
export DEVICE_TYPE=qemu
;;
*)
echo "Skip DEVICE_TYPE for ${PLATFORM}"
;;
esac
rm -rf configs
git clone --depth 1 http://git.linaro.org/ci/job/configs.git
[ -z "${DEVICE_TYPE}" ] || \
sed -e "s|\${BUILD_NUMBER}|${BUILD_NUMBER}|" \
-e "s|\${BUILD_URL}|${BUILD_URL}|" \
-e "s|\${DEVICE_TYPE}|${DEVICE_TYPE}|" \
-e "s|\${ZEPHYR_GCC_VARIANT}|${ZEPHYR_GCC_VARIANT}|" \
-e "s|\${PLATFORM}|${PLATFORM}|" \
-e "s|\${BRANCH}|${BRANCH}|" \
-e "s|\${GIT_COMMIT}|${GIT_COMMIT}|" \
< configs/zephyr-upstream/lava-job-definitions/${DEVICE_TYPE}/task-api-test.yaml \
> custom_lava_job_definition.yaml
cat << EOF > post_build_lava_parameters
DEVICE_TYPE=${DEVICE_TYPE}
CUSTOM_YAML_URL=${JOB_URL}/ws/custom_lava_job_definition.yaml
LAVA_SERVER=${LAVA_SERVER}
EOF
- trigger-builds:
- project: 'post-build-lava'
property-file: post_build_lava_parameters
block: true
publishers:
- archive:
artifacts: 'scripts/sanity_chk/last_sanity.csv'
- email:
recipients: 'fathi.boudra@linaro.org kumar.gala@linaro.org'
|