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 |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 20 | - musl |
| 21 | - test |
| 22 | |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 23 | .base: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 24 | before_script: |
| 25 | - *before-my-script |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 26 | stage: base |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 27 | after_script: |
| 28 | - *after-my-script |
| 29 | |
| 30 | .parsec: |
| 31 | before_script: |
| 32 | - *before-my-script |
| 33 | stage: parsec |
| 34 | after_script: |
| 35 | - *after-my-script |
| 36 | |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 37 | .musl: |
| 38 | before_script: |
| 39 | - *before-my-script |
| 40 | stage: musl |
| 41 | after_script: |
| 42 | - *after-my-script |
| 43 | |
| 44 | .test: |
| 45 | before_script: |
| 46 | - *before-my-script |
| 47 | stage: test |
| 48 | after_script: |
| 49 | - *after-my-script |
| 50 | |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 51 | qemux86: |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 52 | extends: .base |
Andrew Geissler | 5bea8d8 | 2020-07-24 16:10:05 -0500 | [diff] [blame] | 53 | script: |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 54 | - 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] | 55 | - kas build --target security-build-image kas/$CI_JOB_NAME-comp.yml |
| 56 | - kas build --target harden-image-minimal kas/$CI_JOB_NAME-harden.yml |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 57 | |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 58 | qemux86-musl: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 59 | extends: .musl |
Andrew Geissler | 59125e0 | 2021-07-23 12:56:22 -0400 | [diff] [blame] | 60 | needs: ['qemux86'] |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 61 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 62 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 63 | |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 64 | qemux86-parsec: |
| 65 | extends: .parsec |
| 66 | needs: ['qemux86'] |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 67 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 68 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
Andrew Geissler | 157744b | 2020-10-30 15:42:05 -0500 | [diff] [blame] | 69 | |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 70 | qemux86-test: |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 71 | extends: .test |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 72 | needs: ['qemux86'] |
Andrew Geissler | d1d22e6 | 2020-10-16 10:14:32 -0500 | [diff] [blame] | 73 | allow_failure: true |
Andrew Geissler | cc58928 | 2020-09-18 13:34:40 -0500 | [diff] [blame] | 74 | script: |
Andrew Geissler | f1e4406 | 2021-04-15 15:52:46 -0500 | [diff] [blame] | 75 | - kas build --target security-test-image kas/$CI_JOB_NAME.yml |
| 76 | - kas build -c testimage --target security-test-image kas/$CI_JOB_NAME.yml |
| 77 | |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 78 | qemux86-64: |
| 79 | extends: .base |
Andrew Geissler | 5e7fd51 | 2021-05-07 16:09:00 -0500 | [diff] [blame] | 80 | script: |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 81 | - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm-image security-tpm2-image integrity-image-minimal" |
| 82 | - kas build --target dm-verity-image-initramfs kas/$CI_JOB_NAME-dm-verify.yml |
| 83 | - kas build --target security-build-image kas/$CI_JOB_NAME-alt.yml |
| 84 | |
| 85 | qemux86-64-parsec: |
| 86 | extends: .parsec |
| 87 | needs: ['qemux86-64'] |
| 88 | script: |
| 89 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 90 | |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 91 | qemuarm: |
| 92 | extends: .base |
| 93 | script: |
| 94 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 95 | |
| 96 | qemuarm-parsec: |
| 97 | extends: .parsec |
| 98 | needs: ['qemuarm'] |
| 99 | script: |
| 100 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 101 | |
| 102 | qemuarm64: |
| 103 | extends: .base |
| 104 | script: |
| 105 | - kas shell kas/$CI_JOB_NAME.yml -c "bitbake -k security-build-image security-tpm2-image integrity-image-minimal" |
| 106 | - kas build --target security-build-image kas/$CI_JOB_NAME-alt.yml |
| 107 | |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 108 | qemuarm64-musl: |
| 109 | extends: .musl |
| 110 | needs: ['qemuarm64'] |
| 111 | script: |
| 112 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 113 | |
| 114 | qemuarm64-parsec: |
| 115 | extends: .parsec |
| 116 | needs: ['qemuarm64'] |
| 117 | script: |
| 118 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 119 | |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 120 | qemumips64: |
| 121 | extends: .base |
| 122 | script: |
| 123 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |
| 124 | |
William A. Kennington III | ee32beb | 2021-06-02 12:48:35 -0700 | [diff] [blame] | 125 | qemuriscv64: |
| 126 | extends: .base |
| 127 | script: |
| 128 | - kas build --target security-build-image kas/$CI_JOB_NAME.yml |