Skip to content

Commit 2d5ad2e

Browse files
authored
Merge pull request #150 from wangnuannuan/jingru-jenkins-ci
Add yaml file as white-black list for CI
2 parents e81f881 + b6b2873 commit 2d5ad2e

File tree

2 files changed

+120
-13
lines changed

2 files changed

+120
-13
lines changed

.ci/examples.yaml

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
examples:
2+
example.baremetal.blinky:
3+
build_only: false
4+
example.baremetal.arc_feature.udma:
5+
build_only: false
6+
platform_exclude: axs
7+
example.baremetal.arc_feature.cache:
8+
build_only: false
9+
platform_exclude: axs nsim
10+
example.baremetal.arc_feature.timer_interrupt:
11+
build_only: false
12+
example.baremetal.dma_spiflash:
13+
build_only: true
14+
platform_exclude:
15+
emsk: 11 22
16+
example.baremetal.imu_mpu9250:
17+
build_only: true
18+
platform_exclude: nsim
19+
example.baremetal.ble_hm1x:
20+
build_only: true
21+
platform_exclude: nsim
22+
example.baremetal.graphic_u8glib:
23+
build_only: true
24+
platform_exclude: nsim
25+
example.baremetal.ble_rn4020:
26+
build_only: true
27+
platform_exclude: nsim
28+
example.baremetal.openthread.ncp:
29+
build_only: true
30+
platform_exclude: nsim emsdp iotdk
31+
example.baremetal.openthread.cli:
32+
build_only: true
33+
platform_exclude: emsdp axs nsim
34+
example.baremetal.secureshield.secret_secure_sid:
35+
skip: true
36+
tags: secureshield
37+
extra_args: USE_SECURESHIELD_APPL_GEN=1
38+
build_only: true
39+
platform_allow:
40+
emsk: 23
41+
nsim: 10
42+
iotdk: 10
43+
example.baremetal.secureshield.secret_secure:
44+
skip: true
45+
tags: secureshield
46+
extra_args: USE_SECURESHIELD_APPL_GEN=1
47+
build_only: true
48+
platform_allow:
49+
emsk: 23
50+
iotdk: 10
51+
example.baremetal.secureshield.secret_normal:
52+
skip: true
53+
tags: secureshield
54+
extra_args: USE_SECURESHIELD_APPL_GEN=1
55+
build_only: true
56+
platform_allow:
57+
emsk: 23
58+
iotdk: 10
59+
example.baremetal.secureshield.test_case:
60+
tags: secureshield
61+
build_only: true
62+
platform_allow:
63+
emsk: 23
64+
nsim: 10
65+
iotdk: 10
66+
example.baremetal.axs103:
67+
build_only: true
68+
platform_allow: axs
69+
example.baremetal.bootloader:
70+
build_only: true
71+
platform_exclude: emsdp hsdk axs nsim
72+
example.freertos.kernel_secure:
73+
build_only: true
74+
platform_allow:
75+
emsk: 23
76+
example.freertos.sec.mbedtls.ssl.client2:
77+
build_only: true
78+
platform_exclude: iotdk nsim hsdk
79+
example.freertos.sec.mbedtls.ssl.server2:
80+
build_only: true
81+
platform_exclude: iotdk nsim hsdk
82+
example.freertos.sec.mbedtls.dtls.client:
83+
build_only: true
84+
platform_exclude: iotdk nsim hsdk
85+
example.freertos.sec.mbedtls.dtls.server:
86+
build_only: true
87+
platform_exclude: iotdk nsim hsdk
88+
example.freertos.net.httpserver:
89+
build_only: true
90+
platform_exclude: nsim
91+
example.freertos.net.ntshell:
92+
build_only: true
93+
platform_exclude: nsim
94+
example.freertos.esp8266_wifi:
95+
build_only: true
96+
platform_exclude: nsim
97+
example.freertos.iot.coap.coap_server:
98+
build_only: true
99+
platform_exclude: nsim
100+
example.freertos.iot.lwm2m.lwm2m_client:
101+
build_only: true
102+
platform_exclude: nsim
103+
example.freertos.iot.lwm2m.lwm2m_server:
104+
build_only: true
105+
platform_exclude: nsim

apply_embARC_patch.sh

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
#!/usr/bin/env bash
2+
dir="${BASH_SOURCE[0]}"
3+
4+
if uname | grep -q "MINGW"; then
5+
win_build=1
6+
pwd_opt="-W"
7+
else
8+
win_build=0
9+
pwd_opt=""
10+
fi
11+
12+
# identify OS source tree root directory
13+
export embARC_OSP_BASE=$( builtin cd "$( dirname "$dir" )" > /dev/null && pwd ${pwd_opt})
14+
unset pwd_opt
215

316
patches_required_folders="library,middleware,os"
417

@@ -7,11 +20,6 @@ patches_required_folder_list=(${patches_required_folders//,/ })
720
PREV_DIR=$(pwd)
821
SCRIPT_DIR=$(dirname $0)
922

10-
if which dos2unix >/dev/null 2>&1; then :; else
11-
echo "You need dos2unix in your path" >&2
12-
exit 1
13-
fi
14-
1523
cd ${SCRIPT_DIR}
1624

1725
echo "Start to download required source code and apply patches for embARC"
@@ -20,17 +28,11 @@ echo ""
2028
exit_ok=0
2129
for patch_folder in ${patches_required_folder_list[@]}
2230
do
23-
patch_scripts=$(find $patch_folder -maxdepth 2 -name "apply_embARC_patch.sh")
31+
patch_scripts=$(find ${embARC_OSP_BASE}/${patch_folder} -maxdepth 2 -name "apply_embARC_patch.sh")
2432
for script in ${patch_scripts[@]}
2533
do
2634
patch_dir=$(dirname ${script})
2735
echo "+++++Try to patch ${patch_dir}+++++"
28-
echo "Run script: chmod +x ${script} && ${script}"
29-
filetype=$(file ${script} | grep -q CRLF && echo DOS || echo UNIX)
30-
if [[ ${filetype} == DOS ]] ; then
31-
echo "Convert ${script} from DOS to UNIX"
32-
dos2unix ${script}
33-
fi
3436
chmod +x ${script} && ${script}
3537
if [[ $? -eq 0 ]] ; then
3638
echo "-----Patch ${patch_dir} successfully-----"
@@ -46,7 +48,7 @@ if [[ ${exit_ok} -eq 0 ]] ; then
4648
echo "Apply patches for embARC successfully"
4749
else
4850
echo "Apply patches for embARC failed"
51+
exit ${exit_ok}
4952
fi
5053
echo "Patch job ended"
5154
cd ${PREV_DIR}
52-
exit ${exit_ok}

0 commit comments

Comments
 (0)