blob: 32110253c448495e0a0526d8234a6e891b6e9ec8 [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
17
18stages:
19 - build
20 - parsec
21 - multi
22 - alt
23 - musl
24 - test
25
26.build:
27 before_script:
28 - *before-my-script
29 stage: build
30 after_script:
31 - *after-my-script
32
33.parsec:
34 before_script:
35 - *before-my-script
36 stage: parsec
37 after_script:
38 - *after-my-script
39
40
41.multi:
42 before_script:
43 - *before-my-script
44 stage: multi
45 after_script:
46 - *after-my-script
47
48.alt:
49 before_script:
50 - *before-my-script
51 stage: alt
52 after_script:
53 - *after-my-script
54
55.musl:
56 before_script:
57 - *before-my-script
58 stage: musl
59 after_script:
60 - *after-my-script
61
62.test:
63 before_script:
64 - *before-my-script
65 stage: test
66 after_script:
67 - *after-my-script
68
Andrew Geissler5bea8d82020-07-24 16:10:05 -050069
70qemux86:
71 extends: .build
72 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050073 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslerf1e44062021-04-15 15:52:46 -050074 - kas build --target security-build-image kas/$CI_JOB_NAME-comp.yml
75 - kas build --target harden-image-minimal kas/$CI_JOB_NAME-harden.yml
76 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME-ima.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050077
78qemux86-64:
79 extends: .build
80 script:
Andrew Geissler5e7fd512021-05-07 16:09:00 -050081 - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm-image security-tpm2-image"
Andrew Geisslerf1e44062021-04-15 15:52:46 -050082 - kas build --target dm-verity-image-initramfs kas/$CI_JOB_NAME-dm-verify.yml
83 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME-ima.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050084
85qemuarm:
86 extends: .build
87 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050088 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050089
90qemuarm64:
91 extends: .build
92 script:
Andrew Geissler5e7fd512021-05-07 16:09:00 -050093 - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm2-image"
Andrew Geisslerf1e44062021-04-15 15:52:46 -050094 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME-ima.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050095
96qemuppc:
97 extends: .build
98 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050099 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -0500100
101qemumips64:
102 extends: .build
103 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500104 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -0500105
106qemuriscv64:
107 extends: .build
108 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500109 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -0500110
Andrew Geisslercc589282020-09-18 13:34:40 -0500111qemuarm64-alt:
Andrew Geissler5e7fd512021-05-07 16:09:00 -0500112 extends: .alt
Andrew Geisslercc589282020-09-18 13:34:40 -0500113 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500114 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -0500115
116qemuarm64-multi:
Andrew Geissler5e7fd512021-05-07 16:09:00 -0500117 extends: .multi
Andrew Geisslercc589282020-09-18 13:34:40 -0500118 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500119 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -0500120
121qemumips64-alt:
Andrew Geissler5e7fd512021-05-07 16:09:00 -0500122 extends: .alt
Andrew Geisslercc589282020-09-18 13:34:40 -0500123 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500124 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -0500125
126qemumips64-multi:
Andrew Geissler5e7fd512021-05-07 16:09:00 -0500127 extends: .multi
Andrew Geisslercc589282020-09-18 13:34:40 -0500128 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500129 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -0500130
131qemux86-64-alt:
Andrew Geissler5e7fd512021-05-07 16:09:00 -0500132 extends: .alt
Andrew Geisslercc589282020-09-18 13:34:40 -0500133 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500134 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -0500135
136qemux86-64-multi:
Andrew Geissler5e7fd512021-05-07 16:09:00 -0500137 extends: .multi
Andrew Geisslercc589282020-09-18 13:34:40 -0500138 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500139 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -0500140
Andrew Geisslerd1d22e62020-10-16 10:14:32 -0500141qemux86-musl:
Andrew Geissler5e7fd512021-05-07 16:09:00 -0500142 extends: .musl
Andrew Geisslerd1d22e62020-10-16 10:14:32 -0500143 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500144 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslerd1d22e62020-10-16 10:14:32 -0500145
146qemuarm64-musl:
Andrew Geissler5e7fd512021-05-07 16:09:00 -0500147 extends: .musl
Andrew Geisslerd1d22e62020-10-16 10:14:32 -0500148 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500149 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler157744b2020-10-30 15:42:05 -0500150
Andrew Geisslercc589282020-09-18 13:34:40 -0500151qemux86-test:
Andrew Geissler5e7fd512021-05-07 16:09:00 -0500152 extends: .test
Andrew Geisslerd1d22e62020-10-16 10:14:32 -0500153 allow_failure: true
Andrew Geisslercc589282020-09-18 13:34:40 -0500154 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500155 - kas build --target security-test-image kas/$CI_JOB_NAME.yml
156 - kas build -c testimage --target security-test-image kas/$CI_JOB_NAME.yml
157
Andrew Geissler5e7fd512021-05-07 16:09:00 -0500158parsec:
159 extends: .parsec
160 script:
161 - kas build --target security-build-image kas/qemuarm-$CI_JOB_NAME.yml
162 - kas build --target security-build-image kas/qemuarm64-$CI_JOB_NAME.yml
163 - kas build --target security-build-image kas/qemux86-$CI_JOB_NAME.yml
164 - kas build --target security-build-image kas/qemux86-64-$CI_JOB_NAME.yml
165 - kas build --target security-build-image kas/qemuppc-$CI_JOB_NAME.yml