-
Notifications
You must be signed in to change notification settings - Fork 61
/
.gitlab-ci.yml
113 lines (94 loc) · 2.28 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
stages:
- docker
- checkout
- test
variables:
BITBAKE_IMAGE: ${CI_REGISTRY_IMAGE}:ci-${CI_COMMIT_REF_SLUG}-bitbake
BITBAKE_CHECKOUT_IMAGE: ${CI_REGISTRY_IMAGE}:ci-${CI_COMMIT_REF_SLUG}-checkout
include:
- local: "scripts/ci/gitlab/docker.yml"
- local: "scripts/ci/gitlab/checkout.yml"
- local: "scripts/ci/gitlab/tests.yml"
Docker setup:
extends: .bb_docker_local
stage: docker
variables:
BITBKAE_IMAGE_MASTER: ${CI_REGISTRY_IMAGE}:ci-master-bitbake
BITBAKE_CHECKOUT_IMAGE_MASTER: ${CI_REGISTRY_IMAGE}:ci-master-checkout
except:
- pushes
Checkout:
extends: .bb_checkout
stage: checkout
variables:
MANIFEST: master
CURRENT_PROJECT: meta-updater
except:
- pushes
Build core-image-minimal:
extends: .bitbake
stage: test
variables:
TEST_BUILD_DIR: 'build-core-image-minimal'
BITBAKE_TARGETS: 'core-image-minimal'
artifacts:
name: "core-image-minimal_$CI_COMMIT_REF_SLUG"
paths:
- $TEST_BUILD_DIR/tmp/deploy/images/*/core-image-minimal*
except:
- pushes
Build core-image-minimal (rpi):
extends: .bitbake
stage: test
variables:
TEST_BUILD_DIR: 'build-core-image-minimal-rpi'
BITBAKE_TARGETS: 'core-image-minimal'
TEST_MACHINE: 'raspberrypi3'
artifacts:
name: "core-image-minimal-rpi_$CI_COMMIT_REF_SLUG"
paths:
- $TEST_BUILD_DIR/tmp/deploy/images/*/core-image-minimal*
except:
- pushes
Oe-selftest qemux86_64:
extends: .oe-selftest
stage: test
variables:
TEST_BUILD_DIR: 'build-oe-qemux86_64'
OE_SELFTESTS: 'updater_native updater_qemux86_64'
except:
- pushes
# Not run by default, triggered on nightlies
Oe-selftest minnowboard:
extends: .oe-selftest
stage: test
variables:
TEST_BUILD_DIR: 'build-oe-minnowboard'
OE_SELFTESTS: 'updater_minnowboard'
except:
- pushes
only:
variables:
- $OE_MINNOWBOARD
Oe-selftest rpi:
extends: .oe-selftest
stage: test
variables:
TEST_BUILD_DIR: 'build-oe-rpi'
OE_SELFTESTS: 'updater_raspberrypi'
except:
- pushes
only:
variables:
- $OE_RPI
Ptest qemux86_64:
extends: .oe-selftest
stage: test
variables:
TEST_BUILD_DIR: 'build-oe-qemux86_64-ptest'
OE_SELFTESTS: 'updater_qemux86_64_ptest'
except:
- pushes
only:
variables:
- $OE_PTEST