blob: f0c08db7772eb5184f44efcb19d7fbdac4c440fa (
plain)
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
114
115
|
stages:
- docker
- checkout
- test
- trigger
variables:
BITBAKE_IMAGE: ${CI_REGISTRY_IMAGE}:ci-master-bitbake
BITBAKE_CHECKOUT_IMAGE: ${CI_REGISTRY_IMAGE}:ci-master-checkout
include:
- project: 'olp/edge/ota/connect/client/meta-updater'
ref: 'master'
file: 'scripts/ci/gitlab/docker.yml'
- project: 'olp/edge/ota/connect/client/meta-updater'
ref: 'master'
file: 'scripts/ci/gitlab/checkout.yml'
- project: 'olp/edge/ota/connect/client/meta-updater'
ref: 'master'
file: 'scripts/ci/gitlab/tests.yml'
Docker setup:
extends: .bb_docker_remote
stage: docker
except:
- pushes
Checkout:
extends: .bb_checkout
stage: checkout
variables:
MANIFEST: thud
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'
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'
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
Oe-selftest minnowboard:
extends: .oe-selftest
stage: test
variables:
TEST_BUILD_DIR: 'build-oe-minnowboard'
OE_SELFTESTS: 'updater_minnowboard'
except:
- pushes
Oe-selftest rpi:
extends: .oe-selftest
stage: test
variables:
TEST_BUILD_DIR: 'build-oe-rpi'
OE_SELFTESTS: 'updater_raspberrypi'
except:
- pushes
# Not run by default
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
# -- otf
trigger-otf-on-pr:
stage: trigger
when: always
except:
- pushes
- schedules
script:
- apk add --no-cache curl
- curl -X POST -F "token=$CI_JOB_TOKEN" -F "ref=master" -F "variables[BITBAKE_JOB_ONLY]=true" -F "variables[BITBAKE_ENV]=thud" -F "variables[PROJECT_NAME]=meta-updater" -F "variables[PROJECT_SHA]=$CI_COMMIT_SHA" https://main.gitlab.in.here.com/api/v4/projects/163/trigger/pipeline
|