blob: 46468fd1c2b32327a58241d98c12073c54dc07b6 [file] [log] [blame]
Andrew Geissler5bea8d82020-07-24 16:10:05 -05001stages:
2 - build
3
4.build:
5 stage: build
6 image: crops/poky
7 before_script:
Andrew Geisslercc589282020-09-18 13:34:40 -05008 - echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
9 - echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error
Andrew Geissler5bea8d82020-07-24 16:10:05 -050010 - 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 Geissler5bea8d82020-07-24 16:10:05 -050014 after_script:
Andrew Geisslercc589282020-09-18 13:34:40 -050015 - 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 Geissler5bea8d82020-07-24 16:10:05 -050021 - rm -rf build
Andrew Geisslercc589282020-09-18 13:34:40 -050022 - $CI_PROJECT_DIR/scripts/ci-cleanup.sh
Andrew Geissler5bea8d82020-07-24 16:10:05 -050023 cache:
24 paths:
25 - layers
26
27qemux86:
28 extends: .build
29 script:
30 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
31
32qemux86-64:
33 extends: .build
34 script:
35 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
36
37qemuarm:
38 extends: .build
39 script:
40 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
41
42qemuarm64:
43 extends: .build
44 script:
45 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
46
47qemuppc:
48 extends: .build
49 script:
50 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
51
52qemumips64:
53 extends: .build
54 script:
55 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
56
57qemuriscv64:
58 extends: .build
59 script:
60 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
61
62qemux86-64-tpm:
63 extends: .build
64 script:
65 - kas build --target security-tpm-image kas/$CI_JOB_NAME.yml
66
67qemux86-64-tpm2:
68 extends: .build
69 script:
70 - kas build --target security-tpm2-image kas/$CI_JOB_NAME.yml
71
72qemuarm64-tpm2:
73 extends: .build
74 script:
75 - kas build --target security-tpm2-image kas/$CI_JOB_NAME.yml
76
77qemux86-ima:
78 extends: .build
79 script:
80 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME.yml
81
82qemux86-64-ima:
83 extends: .build
84 script:
85 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME.yml
86
87qemuarm64-ima:
88 extends: .build
89 script:
90 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -050091
92qemux86-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
99qemuarm64-alt:
100 extends: .build
101 script:
102 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
103
104qemuarm64-multi:
105 extends: .build
106 script:
107 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
108
109qemumips64-alt:
110 extends: .build
111 script:
112 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
113
114qemumips64-multi:
115 extends: .build
116 script:
117 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
118
119qemux86-64-alt:
120 extends: .build
121 script:
122 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
123
124qemux86-64-multi:
125 extends: .build
126 script:
127 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
128
129
130qemux86-test:
131 extends: .build
132 script:
133 - kas build --target security-test-image kas/$CI_JOB_NAME.yml
134 - kas build -c testimage --target security-test-image kas/$CI_JOB_NAME.yml