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 | |
| 17 | |
| 18 | stages: |
| 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 Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 69 | |
| 70 | qemux86: |
| 71 | extends: .build |
| 72 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 73 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 74 | - 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 Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 77 | |
| 78 | qemux86-64: |
| 79 | extends: .build |
| 80 | script: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 81 | - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm-image security-tpm2-image" |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 82 | - 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 Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 84 | |
| 85 | qemuarm: |
| 86 | extends: .build |
| 87 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 88 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 89 | |
| 90 | qemuarm64: |
| 91 | extends: .build |
| 92 | script: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 93 | - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm2-image" |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 94 | - kas build --target integrity-image-minimal kas/$CI_JOB_NAME-ima.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 95 | |
| 96 | qemuppc: |
| 97 | extends: .build |
| 98 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 99 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 100 | |
| 101 | qemumips64: |
| 102 | extends: .build |
| 103 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 104 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 105 | |
| 106 | qemuriscv64: |
| 107 | extends: .build |
| 108 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 109 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 110 | |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 111 | qemuarm64-alt: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 112 | extends: .alt |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 113 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 114 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 115 | |
| 116 | qemuarm64-multi: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 117 | extends: .multi |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 118 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 119 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 120 | |
| 121 | qemumips64-alt: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 122 | extends: .alt |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 123 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 124 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 125 | |
| 126 | qemumips64-multi: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 127 | extends: .multi |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 128 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 129 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 130 | |
| 131 | qemux86-64-alt: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 132 | extends: .alt |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 133 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 134 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 135 | |
| 136 | qemux86-64-multi: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 137 | extends: .multi |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 138 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 139 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 140 | |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 141 | qemux86-musl: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 142 | extends: .musl |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 143 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 144 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 145 | |
| 146 | qemuarm64-musl: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 147 | extends: .musl |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 148 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 149 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | 157744b | 2020-10-30 15:42:05 -0500 | [diff] [blame] | 150 | |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 151 | qemux86-test: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 152 | extends: .test |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 153 | allow_failure: true |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 154 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 155 | - 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 Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 158 | parsec: |
| 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 |