blob: 6e61e3dd8518818fb056cbb3ede988a416330be2 [file] [log] [blame]
Paul Sokolovsky7b2f2b92023-09-11 21:59:37 +03001- job:
2 name: tf-a-eclair-daily-separate
3 project-type: matrix
4 concurrent: true
Paul Sokolovskyad5638f2024-10-22 12:34:15 +07005 disabled: true
Paul Sokolovsky7b2f2b92023-09-11 21:59:37 +03006 defaults: global
7 Description: |
8 ECLAIR (MISRA compliance) testing of TF-A (different configs built independently/separately)
9 properties:
10 - build-discarder:
11 days-to-keep: 40
12 - authorization:
13 !include: authorization.yaml.inc
14 - throttle:
15 option: category
16 categories: [eclair-daily]
17 matrix-builds: false
18 matrix-configs: true
19 parameters:
20 - string:
21 name: MAKE_TARGET
22 default: ''
23 description: |
24 TF-A make target
25 - string:
26 name: DEBUG
27 default: '1'
28 description: |
29 TF-A make DEBUG setting
30 - string:
31 name: GERRIT_HOST
32 default: 'review.trustedfirmware.org'
33 - string:
34 name: GERRIT_PROJECT
35 default: 'TF-A/trusted-firmware-a'
36 description: |
37 Git project to build (also set by Gerrit trigger)
38 - string:
39 name: GERRIT_REFNAME
40 default: 'integration'
41 description: |
42 Git branch to build (also set by Gerrit trigger)
43 - string:
44 name: GERRIT_NEWREV
45 default: ''
46 description: |
47 Git revision to build (also set by Gerrit ref-updated trigger)
48 - string:
49 name: MBEDTLS_URL
50 default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.28.0.tar.gz'
51 description: |
52 URL of mbedTLS library to use in build (only for some configurations)
53 - string:
54 name: SHARE_FOLDER
55 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
56 description: 'Folder containing shared repositories for downstream pipeline jobs'
57 axes:
58 - axis:
59 type: slave
60 name: label
61 values:
62 - docker-tf-a-eclair
63 - axis:
64 type: user-defined
65 name: TF_CONFIG
66 values:
67 - fvp-aarch32-default
68 - fvp-aarch32-enable-runtime-instr
69 - fvp-aarch32-rst-to-sp-min
70 - fvp-boot-el3-payload
71 - fvp-default
72 - fvp-enable-runtime-instr
73 - fvp-ext-pstate-ea-el3
74 # Causes runtime error in ECLAIR: https://support.bugseng.com/mantis/view.php?id=5083
75 #- fvp-mb_hash256-tbb_hash256-romlib
76 - fvp-no-cohmem
77 - fvp-opteed
78 - fvp-r-default
79 - fvp-rst-bl31
80 - fvp-tspd
81 - fvp-tspd-gicv2-symmetric-model
82 - fvp-tspd-irq2el3
83 - fvp-tspd-quad-cluster
84 - fvp-tspd-tbb-mbedtls
85 - fvp-tspd-tsp-async
86 - juno-aarch32-rst-to-sp-min
87 - juno-aarch32-rst-to-sp-min-enable-runtime-instr
88 - juno-default
89 - juno-tspd
90 triggers:
Paul Sokolovskyc4aa3ef2023-09-11 22:37:06 +030091 - timed: 'H 2 * * 0'
Paul Sokolovsky7b2f2b92023-09-11 21:59:37 +030092# - gerrit:
93# silent: true
94# server-name: 'review.trustedfirmware.org'
95# projects:
96# - branches:
97# - branch-compare-type: PLAIN
98# branch-pattern: integration
99# project-compare-type: PLAIN
100# project-pattern: 'TF-A/trusted-firmware-a'
101# trigger-on:
102# - ref-updated-event
103 wrappers:
104 - timestamps
105 - timeout:
106 timeout: 120
107 fail: true
108 builders:
109 - shell: |
110 #!/bin/bash
111 set -ex
112 pwd
113 git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
114 git clone https://git.trustedfirmware.org/ci/tf-ci-scripts.git
115
116 git clone https://${GERRIT_HOST}/${GERRIT_PROJECT} -b ${GERRIT_REFNAME}
117 ls -l
118 if [ -n "${GERRIT_NEWREV}" ]; then
119 (cd $(basename ${GERRIT_PROJECT}); git checkout ${GERRIT_NEWREV})
120 else
121 # Checkout last commit from yesterday, to have a stable commit for
122 # multiple builds.
123 (cd $(basename ${GERRIT_PROJECT}); git checkout $(git rev-list -n1 --before="today" HEAD))
124 fi
125 (cd $(basename ${GERRIT_PROJECT}); git log -n1)
126
127 export ECLAIR_CONFIG_DIR=$PWD/tf-a-ci-scripts/eclair
128 . tf-ci-scripts/eclair/utils.sh
129 # TODO
130 #. tf-a-ci-scripts/eclair/utils_tfa.sh
131
132 detachLicense 5400
133 trap "returnLicense" EXIT
134
135 . tf-a-ci-scripts/eclair/analyze_common.sh
136 export ECLAIR_ANALYSIS=ECLAIR
137 eclair_prepare
138 eclair_analyze tf-a-ci-scripts/eclair/build-tfa.sh ${TF_CONFIG}
139 eclair_make_ecd
140 eclair_make_reports
141 eclair_compress_db
142
143 tf-ci-scripts/eclair/analyze_index_html.sh
144 publishers:
145 - archive:
146 artifacts: 'ECLAIR/**, index.html'
147 excludes: 'ECLAIR/out/.data/**'
148 latest-only: false
149 allow-empty: true
150 - email:
151 recipients: 'paul.sokolovsky@linaro.org'