Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 1 | .before-my-script: &before-my-script |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 2 | - echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error |
| 3 | - echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 4 | - 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 Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 8 | |
| 9 | .after-my-script: &after-my-script |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 10 | - 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 Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 15 | - rm -fr $CI_PROJECT_DIR/build |
| 16 | |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 17 | stages: |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 18 | - base |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 19 | - parsec |
| 20 | - multi |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 21 | - musl |
| 22 | - test |
| 23 | |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 24 | .base: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 25 | before_script: |
| 26 | - *before-my-script |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 27 | stage: base |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 28 | 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 Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 46 | .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 Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 60 | qemux86: |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 61 | extends: .base |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 62 | script: |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 63 | - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image integrity-image-minimal" |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 64 | - 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 Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 66 | |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 67 | qemux86-musl: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 68 | extends: .musl |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 69 | needs: ['qemux86-parsec'] |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 70 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 71 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 72 | |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 73 | qemux86-parsec: |
| 74 | extends: .parsec |
| 75 | needs: ['qemux86'] |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 76 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 77 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | 157744b | 2020-10-30 15:42:05 -0500 | [diff] [blame] | 78 | |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 79 | qemux86-test: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 80 | extends: .test |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 81 | needs: ['qemux86'] |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 82 | allow_failure: true |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 83 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 84 | - 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 III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 87 | qemux86-64: |
| 88 | extends: .base |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 89 | script: |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 90 | - 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 | |
| 94 | qemux86-64-parsec: |
| 95 | extends: .parsec |
| 96 | needs: ['qemux86-64'] |
| 97 | script: |
| 98 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 99 | |
| 100 | qemux86-64-multi: |
| 101 | extends: .multi |
| 102 | needs: ['qemux86-64'] |
| 103 | script: |
| 104 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 105 | |
| 106 | qemuarm: |
| 107 | extends: .base |
| 108 | script: |
| 109 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 110 | |
| 111 | qemuarm-parsec: |
| 112 | extends: .parsec |
| 113 | needs: ['qemuarm'] |
| 114 | script: |
| 115 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 116 | |
| 117 | qemuarm64: |
| 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 | |
| 123 | qemuarm64-multi: |
| 124 | extends: .multi |
| 125 | needs: ['qemuarm64'] |
| 126 | script: |
| 127 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 128 | |
| 129 | qemuarm64-musl: |
| 130 | extends: .musl |
| 131 | needs: ['qemuarm64'] |
| 132 | script: |
| 133 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 134 | |
| 135 | qemuarm64-parsec: |
| 136 | extends: .parsec |
| 137 | needs: ['qemuarm64'] |
| 138 | script: |
| 139 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 140 | |
| 141 | qemuppc: |
| 142 | extends: .base |
| 143 | script: |
| 144 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 145 | |
| 146 | qemuppc-parsec: |
| 147 | extends: .parsec |
| 148 | needs: ['qemuppc'] |
| 149 | script: |
| 150 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 151 | |
| 152 | qemumips64: |
| 153 | extends: .base |
| 154 | script: |
| 155 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 156 | |
| 157 | qemumips64-multi: |
| 158 | extends: .multi |
| 159 | needs: ['qemumips64'] |
| 160 | script: |
| 161 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 162 | |
| 163 | qemuriscv64: |
| 164 | extends: .base |
| 165 | script: |
| 166 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |