-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy path.gitlab-ci.yml
63 lines (55 loc) · 1.56 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
image: kasproject/kas:2.0
variables:
GIT_STRATEGY: clone
.build: &build
stage: build
script:
# define these proxy variables in your CI/CD settings as needed
- export http_proxy=$HTTP_PROXY
- export https_proxy=$HTTPS_PROXY
- export ftp_proxy=$FTP_PROXY
- export no_proxy=$NO_PROXY
- cd ..
- kas build meta-iot2000/$KAS_CONFIG
.build-and-deploy-image: &build-and-deploy-image
<<: *build
after_script:
- for IMAGE in $DEPLOY_IMAGES; do
xz -c -T0 -9 ../build/tmp/deploy/images/iot2000/$IMAGE > $IMAGE.xz;
done
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_SHA::12}"
paths:
- ./*.xz
expire_in: 1 week
.build-and-deploy-sdk: &build-and-deploy-sdk
<<: *build
after_script:
- mv ../build/tmp/deploy/sdk/$DEPLOY_SDK .
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_SHA::12}"
paths:
- $DEPLOY_SDK
expire_in: 1 week
bsp-rt:
<<: *build-and-deploy-image
variables:
KAS_CONFIG: kas-bsp-rt.yml
DEPLOY_IMAGES: core-image-rt-iot2000.wic
example-image:
<<: *build-and-deploy-image
variables:
KAS_CONFIG: kas-example.yml
DEPLOY_IMAGES: iot2000-example-image-iot2000.wic
update-image:
# <<: *build-and-deploy-image
<<: *build
variables:
KAS_CONFIG: kas-example-swupdate.yml
DEPLOY_IMAGES: iot2000-example-image-swu-iot2000.wic iot2000-update-image-iot2000.swu
windows-sdk:
# <<: *build-and-deploy-sdk
<<: *build
variables:
KAS_CONFIG: kas-sdk-windows-i586.yml
DEPLOY_SDK: poky-iot2000-glibc-i686-iot2000-example-image-i586-nlp-32-toolchain-2.2.2.tar.xz