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