blob: a4137cb0e775fd891895a621bde648f2917698d8 [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
Andrew Geissler5e7fd512021-05-07 16:09:00 -050020 - musl
21 - test
22
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070023.base:
Andrew Geissler5e7fd512021-05-07 16:09:00 -050024 before_script:
25 - *before-my-script
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070026 stage: base
Andrew Geissler5e7fd512021-05-07 16:09:00 -050027 after_script:
28 - *after-my-script
29
30.parsec:
31 before_script:
32 - *before-my-script
33 stage: parsec
34 after_script:
35 - *after-my-script
36
Andrew Geissler5e7fd512021-05-07 16:09:00 -050037.musl:
38 before_script:
39 - *before-my-script
40 stage: musl
41 after_script:
42 - *after-my-script
43
44.test:
45 before_script:
46 - *before-my-script
47 stage: test
48 after_script:
49 - *after-my-script
50
Andrew Geissler5bea8d82020-07-24 16:10:05 -050051qemux86:
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070052 extends: .base
Andrew Geissler5bea8d82020-07-24 16:10:05 -050053 script:
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070054 - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image integrity-image-minimal"
Andrew Geisslerf1e44062021-04-15 15:52:46 -050055 - kas build --target security-build-image kas/$CI_JOB_NAME-comp.yml
56 - kas build --target harden-image-minimal kas/$CI_JOB_NAME-harden.yml
Andrew Geisslercc589282020-09-18 13:34:40 -050057
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050058qemux86-musl:
Andrew Geissler5e7fd512021-05-07 16:09:00 -050059 extends: .musl
Andrew Geissler59125e02021-07-23 12:56:22 -040060 needs: ['qemux86']
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050061 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050062 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050063
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070064qemux86-parsec:
65 extends: .parsec
66 needs: ['qemux86']
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050067 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050068 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler157744b2020-10-30 15:42:05 -050069
Andrew Geisslercc589282020-09-18 13:34:40 -050070qemux86-test:
Andrew Geissler5e7fd512021-05-07 16:09:00 -050071 extends: .test
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070072 needs: ['qemux86']
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050073 allow_failure: true
Andrew Geisslercc589282020-09-18 13:34:40 -050074 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050075 - kas build --target security-test-image kas/$CI_JOB_NAME.yml
76 - kas build -c testimage --target security-test-image kas/$CI_JOB_NAME.yml
77
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070078qemux86-64:
79 extends: .base
Andrew Geissler5e7fd512021-05-07 16:09:00 -050080 script:
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070081 - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm-image security-tpm2-image integrity-image-minimal"
82 - kas build --target dm-verity-image-initramfs kas/$CI_JOB_NAME-dm-verify.yml
83 - kas build --target security-build-image kas/$CI_JOB_NAME-alt.yml
84
85qemux86-64-parsec:
86 extends: .parsec
87 needs: ['qemux86-64']
88 script:
89 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
90
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070091qemuarm:
92 extends: .base
93 script:
94 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
95
96qemuarm-parsec:
97 extends: .parsec
98 needs: ['qemuarm']
99 script:
100 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
101
102qemuarm64:
103 extends: .base
104 script:
105 - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm2-image integrity-image-minimal"
106 - kas build --target security-build-image kas/$CI_JOB_NAME-alt.yml
107
William A. Kennington IIIee32beb2021-06-02 12:48:35 -0700108qemuarm64-musl:
109 extends: .musl
110 needs: ['qemuarm64']
111 script:
112 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
113
114qemuarm64-parsec:
115 extends: .parsec
116 needs: ['qemuarm64']
117 script:
118 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
119
William A. Kennington IIIee32beb2021-06-02 12:48:35 -0700120qemumips64:
121 extends: .base
122 script:
123 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
124
William A. Kennington IIIee32beb2021-06-02 12:48:35 -0700125qemuriscv64:
126 extends: .base
127 script:
128 - kas build --target security-build-image kas/$CI_JOB_NAME.yml