Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 1 | stages: |
| 2 | - build |
| 3 | |
| 4 | .build: |
| 5 | stage: build |
| 6 | image: crops/poky |
| 7 | before_script: |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 8 | - echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error |
| 9 | - echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 10 | - export PATH=~/.local/bin:$PATH |
| 11 | - wget https://bootstrap.pypa.io/get-pip.py |
| 12 | - python3 get-pip.py |
| 13 | - python3 -m pip install kas |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 14 | after_script: |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 15 | - cd $CI_PROJECT_DIR/poky |
| 16 | - . ./oe-init-build-env $CI_PROJECT_DIR/build |
| 17 | - for x in `ls $CI_PROJECT_DIR/build/tmp/log/error-report/ | grep error_report_`; do |
| 18 | - send-error-report -y tmp/log/error-report/$x |
| 19 | - done |
| 20 | - cd $CI_PROJECT_DIR |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 21 | - rm -rf build |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 22 | cache: |
| 23 | paths: |
| 24 | - layers |
| 25 | |
| 26 | qemux86: |
| 27 | extends: .build |
| 28 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 29 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 30 | - kas build --target security-build-image kas/$CI_JOB_NAME-parsec.yml |
| 31 | - kas build --target security-build-image kas/$CI_JOB_NAME-comp.yml |
| 32 | - kas build --target harden-image-minimal kas/$CI_JOB_NAME-harden.yml |
| 33 | - kas build --target integrity-image-minimal kas/$CI_JOB_NAME-ima.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 34 | |
| 35 | qemux86-64: |
| 36 | extends: .build |
| 37 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 38 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 39 | - kas build --target security-build-image kas/$CI_JOB_NAME-parsec.yml |
| 40 | - kas build --target dm-verity-image-initramfs kas/$CI_JOB_NAME-dm-verify.yml |
| 41 | - kas build --target integrity-image-minimal kas/$CI_JOB_NAME-ima.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 42 | |
| 43 | qemuarm: |
| 44 | extends: .build |
| 45 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 46 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 47 | - kas build --target security-build-image kas/$CI_JOB_NAME-parsec.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 48 | |
| 49 | qemuarm64: |
| 50 | extends: .build |
| 51 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 52 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 53 | - kas build --target security-build-image kas/$CI_JOB_NAME-parsec.yml |
| 54 | - kas build --target integrity-image-minimal kas/$CI_JOB_NAME-ima.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 55 | |
| 56 | qemuppc: |
| 57 | extends: .build |
| 58 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 59 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 60 | - kas build --target security-build-image kas/$CI_JOB_NAME-parsec.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 61 | |
| 62 | qemumips64: |
| 63 | extends: .build |
| 64 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 65 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 66 | |
| 67 | qemuriscv64: |
| 68 | extends: .build |
| 69 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 70 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 71 | |
| 72 | qemux86-64-tpm: |
| 73 | extends: .build |
| 74 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 75 | - kas build --target security-tpm-image kas/$CI_JOB_NAME.yml |
| 76 | - kas build --target security-tpm2-image kas/$CI_JOB_NAME2.yml |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 77 | |
| 78 | qemuarm64-tpm2: |
| 79 | extends: .build |
| 80 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 81 | - kas build --target security-tpm2-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 82 | |
| 83 | qemuarm64-alt: |
| 84 | extends: .build |
| 85 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 86 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 87 | |
| 88 | qemuarm64-multi: |
| 89 | extends: .build |
| 90 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 91 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 92 | |
| 93 | qemumips64-alt: |
| 94 | extends: .build |
| 95 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 96 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 97 | |
| 98 | qemumips64-multi: |
| 99 | extends: .build |
| 100 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 101 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 102 | |
| 103 | qemux86-64-alt: |
| 104 | extends: .build |
| 105 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 106 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 107 | |
| 108 | qemux86-64-multi: |
| 109 | extends: .build |
| 110 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 111 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 112 | |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 113 | qemux86-musl: |
| 114 | extends: .build |
| 115 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 116 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 117 | |
| 118 | qemuarm64-musl: |
| 119 | extends: .build |
| 120 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 121 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | 157744b | 2020-10-30 15:42:05 -0500 | [diff] [blame] | 122 | |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 123 | qemux86-test: |
| 124 | extends: .build |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 125 | allow_failure: true |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 126 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 127 | - kas build --target security-test-image kas/$CI_JOB_NAME.yml |
| 128 | - kas build -c testimage --target security-test-image kas/$CI_JOB_NAME.yml |
| 129 | |