blob: 1e82a874eccf511f0273d8ff7e4790dc9d1044af [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 harden-image-minimal kas/$CI_JOB_NAME-harden.yml
Andrew Geisslercc589282020-09-18 13:34:40 -050056
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050057qemux86-musl:
Andrew Geissler5e7fd512021-05-07 16:09:00 -050058 extends: .musl
Andrew Geissler59125e02021-07-23 12:56:22 -040059 needs: ['qemux86']
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050060 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050061 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050062
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070063qemux86-parsec:
64 extends: .parsec
65 needs: ['qemux86']
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050066 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050067 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler157744b2020-10-30 15:42:05 -050068
Andrew Geisslercc589282020-09-18 13:34:40 -050069qemux86-test:
Andrew Geissler5e7fd512021-05-07 16:09:00 -050070 extends: .test
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070071 needs: ['qemux86']
Andrew Geisslerd1d22e62020-10-16 10:14:32 -050072 allow_failure: true
Andrew Geisslercc589282020-09-18 13:34:40 -050073 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050074 - kas build --target security-test-image kas/$CI_JOB_NAME.yml
75 - kas build -c testimage --target security-test-image kas/$CI_JOB_NAME.yml
76
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070077qemux86-64:
78 extends: .base
Andrew Geissler5e7fd512021-05-07 16:09:00 -050079 script:
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070080 - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm-image security-tpm2-image integrity-image-minimal"
81 - kas build --target dm-verity-image-initramfs kas/$CI_JOB_NAME-dm-verify.yml
82 - kas build --target security-build-image kas/$CI_JOB_NAME-alt.yml
83
84qemux86-64-parsec:
85 extends: .parsec
86 needs: ['qemux86-64']
87 script:
88 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
89
William A. Kennington IIIee32beb2021-06-02 12:48:35 -070090qemuarm:
91 extends: .base
92 script:
93 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
94
95qemuarm-parsec:
96 extends: .parsec
97 needs: ['qemuarm']
98 script:
99 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
100
101qemuarm64:
102 extends: .base
103 script:
104 - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm2-image integrity-image-minimal"
105 - kas build --target security-build-image kas/$CI_JOB_NAME-alt.yml
106
William A. Kennington IIIee32beb2021-06-02 12:48:35 -0700107qemuarm64-musl:
108 extends: .musl
109 needs: ['qemuarm64']
110 script:
111 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
112
113qemuarm64-parsec:
114 extends: .parsec
115 needs: ['qemuarm64']
116 script:
117 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
118
William A. Kennington IIIee32beb2021-06-02 12:48:35 -0700119qemumips64:
120 extends: .base
121 script:
122 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
123
William A. Kennington IIIee32beb2021-06-02 12:48:35 -0700124qemuriscv64:
125 extends: .base
126 script:
127 - kas build --target security-build-image kas/$CI_JOB_NAME.yml