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: |
| 29 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 30 | |
| 31 | qemux86-64: |
| 32 | extends: .build |
| 33 | script: |
| 34 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 35 | |
| 36 | qemuarm: |
| 37 | extends: .build |
| 38 | script: |
| 39 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 40 | |
| 41 | qemuarm64: |
| 42 | extends: .build |
| 43 | script: |
| 44 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 45 | |
| 46 | qemuppc: |
| 47 | extends: .build |
| 48 | script: |
| 49 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 50 | |
| 51 | qemumips64: |
| 52 | extends: .build |
| 53 | script: |
| 54 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 55 | |
| 56 | qemuriscv64: |
| 57 | extends: .build |
| 58 | script: |
| 59 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 60 | |
| 61 | qemux86-64-tpm: |
| 62 | extends: .build |
| 63 | script: |
| 64 | - kas build --target security-tpm-image kas/$CI_JOB_NAME.yml |
| 65 | |
| 66 | qemux86-64-tpm2: |
| 67 | extends: .build |
| 68 | script: |
| 69 | - kas build --target security-tpm2-image kas/$CI_JOB_NAME.yml |
| 70 | |
| 71 | qemuarm64-tpm2: |
| 72 | extends: .build |
| 73 | script: |
| 74 | - kas build --target security-tpm2-image kas/$CI_JOB_NAME.yml |
| 75 | |
| 76 | qemux86-ima: |
| 77 | extends: .build |
| 78 | script: |
| 79 | - kas build --target integrity-image-minimal kas/$CI_JOB_NAME.yml |
| 80 | |
| 81 | qemux86-64-ima: |
| 82 | extends: .build |
| 83 | script: |
| 84 | - kas build --target integrity-image-minimal kas/$CI_JOB_NAME.yml |
| 85 | |
| 86 | qemuarm64-ima: |
| 87 | extends: .build |
| 88 | script: |
| 89 | - kas build --target integrity-image-minimal kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 90 | |
| 91 | qemux86-64-dm-verify: |
| 92 | extends: .build |
| 93 | script: |
| 94 | - kas build --target core-image-minimal kas/qemux86-64.yml |
| 95 | - kas build --target dm-verity-image-initramfs kas/$CI_JOB_NAME.yml |
| 96 | |
| 97 | |
| 98 | qemuarm64-alt: |
| 99 | extends: .build |
| 100 | script: |
| 101 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 102 | |
| 103 | qemuarm64-multi: |
| 104 | extends: .build |
| 105 | script: |
| 106 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 107 | |
| 108 | qemumips64-alt: |
| 109 | extends: .build |
| 110 | script: |
| 111 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 112 | |
| 113 | qemumips64-multi: |
| 114 | extends: .build |
| 115 | script: |
| 116 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 117 | |
| 118 | qemux86-64-alt: |
| 119 | extends: .build |
| 120 | script: |
| 121 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 122 | |
| 123 | qemux86-64-multi: |
| 124 | extends: .build |
| 125 | script: |
| 126 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 127 | |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 128 | qemux86-musl: |
| 129 | extends: .build |
| 130 | script: |
| 131 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 132 | |
| 133 | qemuarm64-musl: |
| 134 | extends: .build |
| 135 | script: |
| 136 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 137 | |
Andrew Geissler | 157744b | 2020-10-30 15:42:05 -0500 | [diff] [blame] | 138 | qemux86-harden: |
| 139 | extends: .build |
| 140 | script: |
| 141 | - kas build --target harden-image-minimal kas/$CI_JOB_NAME.yml |
| 142 | |
| 143 | qemux86-comp: |
| 144 | extends: .build |
| 145 | script: |
| 146 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 147 | |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 148 | qemux86-test: |
| 149 | extends: .build |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 150 | allow_failure: true |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 151 | script: |
| 152 | - kas build --target security-test-image kas/$CI_JOB_NAME.yml |
| 153 | - kas build -c testimage --target security-test-image kas/$CI_JOB_NAME.yml |