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