blob: 762ba66e1de3a3dedabec01554ec364678187d7a [file] [log] [blame]
Andrew Geissler5e7fd512021-05-07 16:09:00 -05001.before-my-script: &before-my-script
Andrew Geisslercc589282020-09-18 13:34:40 -05002 - echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
3 - echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error
Andrew Geissler5bea8d82020-07-24 16:10:05 -05004 - export PATH=~/.local/bin:$PATH
5 - wget https://bootstrap.pypa.io/get-pip.py
6 - python3 get-pip.py
7 - python3 -m pip install kas
Andrew Geissler5e7fd512021-05-07 16:09:00 -05008
9.after-my-script: &after-my-script
Andrew Geisslercc589282020-09-18 13:34:40 -050010 - cd $CI_PROJECT_DIR/poky
11 - . ./oe-init-build-env $CI_PROJECT_DIR/build
12 - for x in `ls $CI_PROJECT_DIR/build/tmp/log/error-report/ | grep error_report_`; do
13 - send-error-report -y tmp/log/error-report/$x
14 - done
Andrew Geissler5e7fd512021-05-07 16:09:00 -050015 - rm -fr $CI_PROJECT_DIR/build
16
Andrew Geissler5e7fd512021-05-07 16:09:00 -050017stages:
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070018 - base
Andrew Geissler5e7fd512021-05-07 16:09:00 -050019 - parsec
20 - multi
Andrew Geissler5e7fd512021-05-07 16:09:00 -050021 - musl
22 - test
23
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070024.base:
Andrew Geissler5e7fd512021-05-07 16:09:00 -050025 before_script:
26 - *before-my-script
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070027 stage: base
Andrew Geissler5e7fd512021-05-07 16:09:00 -050028 after_script:
29 - *after-my-script
30
31.parsec:
32 before_script:
33 - *before-my-script
34 stage: parsec
35 after_script:
36 - *after-my-script
37
38
39.multi:
40 before_script:
41 - *before-my-script
42 stage: multi
43 after_script:
44 - *after-my-script
45
Andrew Geissler5e7fd512021-05-07 16:09:00 -050046.musl:
47 before_script:
48 - *before-my-script
49 stage: musl
50 after_script:
51 - *after-my-script
52
53.test:
54 before_script:
55 - *before-my-script
56 stage: test
57 after_script:
58 - *after-my-script
59
Andrew Geissler5bea8d82020-07-24 16:10:05 -050060qemux86:
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070061 extends: .base
Andrew Geissler5bea8d82020-07-24 16:10:05 -050062 script:
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070063 - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image integrity-image-minimal"
Andrew Geisslerf1e44062021-04-15 15:52:46 -050064 - kas build --target security-build-image kas/$CI_JOB_NAME-comp.yml
65 - kas build --target harden-image-minimal kas/$CI_JOB_NAME-harden.yml
Andrew Geisslercc589282020-09-18 13:34:40 -050066
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050067qemux86-musl:
Andrew Geissler5e7fd512021-05-07 16:09:00 -050068 extends: .musl
Andrew Geissler59125e02021-07-23 12:56:22 -040069 needs: ['qemux86']
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050070 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050071 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050072
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070073qemux86-parsec:
74 extends: .parsec
75 needs: ['qemux86']
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050076 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050077 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler157744b2020-10-30 15:42:05 -050078
Andrew Geisslercc589282020-09-18 13:34:40 -050079qemux86-test:
Andrew Geissler5e7fd512021-05-07 16:09:00 -050080 extends: .test
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070081 needs: ['qemux86']
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050082 allow_failure: true
Andrew Geisslercc589282020-09-18 13:34:40 -050083 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050084 - kas build --target security-test-image kas/$CI_JOB_NAME.yml
85 - kas build -c testimage --target security-test-image kas/$CI_JOB_NAME.yml
86
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070087qemux86-64:
88 extends: .base
Andrew Geissler5e7fd512021-05-07 16:09:00 -050089 script:
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070090 - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm-image security-tpm2-image integrity-image-minimal"
91 - kas build --target dm-verity-image-initramfs kas/$CI_JOB_NAME-dm-verify.yml
92 - kas build --target security-build-image kas/$CI_JOB_NAME-alt.yml
93
94qemux86-64-parsec:
95 extends: .parsec
96 needs: ['qemux86-64']
97 script:
98 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
99
100qemux86-64-multi:
101 extends: .multi
102 needs: ['qemux86-64']
103 script:
104 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
105
106qemuarm:
107 extends: .base
108 script:
109 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
110
111qemuarm-parsec:
112 extends: .parsec
113 needs: ['qemuarm']
114 script:
115 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
116
117qemuarm64:
118 extends: .base
119 script:
120 - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm2-image integrity-image-minimal"
121 - kas build --target security-build-image kas/$CI_JOB_NAME-alt.yml
122
123qemuarm64-multi:
124 extends: .multi
125 needs: ['qemuarm64']
126 script:
127 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
128
129qemuarm64-musl:
130 extends: .musl
131 needs: ['qemuarm64']
132 script:
133 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
134
135qemuarm64-parsec:
136 extends: .parsec
137 needs: ['qemuarm64']
138 script:
139 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
140
141qemuppc:
142 extends: .base
143 script:
144 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
145
146qemuppc-parsec:
147 extends: .parsec
148 needs: ['qemuppc']
149 script:
150 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
151
152qemumips64:
153 extends: .base
154 script:
155 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
156
157qemumips64-multi:
158 extends: .multi
159 needs: ['qemumips64']
160 script:
161 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
162
163qemuriscv64:
164 extends: .base
165 script:
166 - kas build --target security-build-image kas/$CI_JOB_NAME.yml