-
Notifications
You must be signed in to change notification settings - Fork 19
/
.gitlab-ci.yml
213 lines (185 loc) · 4.59 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
stages:
- prepare
- generate
- build
- assemble
- deploy
image: $SDK_IMAGE
variables:
PROJECTNAME: "TEST"
BUILDTYPE: "RELEASE"
BUILD_HARDWARE: "AXCF2152 RFC4072S GTCF2172 NFC482S"
before_script:
- chmod x tools/*
- which cmake
- cmake --version
- which make
- make --version
- which plcncli
##############
##############
#####TEMPLATES
include:
- 'tools/CI_Templates/prepare.gitlab-ci.yml'
- 'tools/CI_Templates/config.gitlab-ci.yml'
- 'tools/CI_Templates/code.gitlab-ci.yml'
- 'tools/CI_Templates/build.gitlab-ci.yml'
- 'tools/CI_Templates/assemble.gitlab-ci.yml'
############
############
#Package All
DeployAll:
stage: deploy
tags:
- docker
- debian-based
dependencies:
- ProgramComponentInteraction_assemble
- ThreadExample_assemble
- CppDataTypeTest_assemble
- NotificationExample_assemble
script:
- ls -la deploy/*/*
- echo "TODO"
- echo "find all pcwlx"
- echo "find all sos"
- echo "add READMEs"
- echo "add headers"
- echo "add Additional Config files"
- echo "zip it up"
- echo "upload"
after_script:
- plcncli get project-targets -p "build/${PROJECTNAME}"
- ls -la deploy/*/*.so
- ls -la deploy/*/*.pcwlx
artifacts:
expire_in: 5 day
paths:
- deploy/*
only:
refs:
- master
- develop
############
############
####EXAMPLES
## ProgramComponentInteraction
ProgramComponentInteraction_prep:
extends: .PrepareProjectTemplate
variables:
PROJECTNAME: ProgramComponentInteraction
ProgramComponentInteraction_gen_code:
extends: .GenerateCodeTemplate
dependencies:
- ProgramComponentInteraction_prep
variables:
PROJECTNAME: ProgramComponentInteraction
ProgramComponentInteraction_gen_config:
extends: .GenerateConfigTemplate
dependencies:
- ProgramComponentInteraction_prep
variables:
PROJECTNAME: ProgramComponentInteraction
ProgramComponentInteraction_build:
extends: .BuildProjectTemplate
dependencies:
- ProgramComponentInteraction_gen_code
- ProgramComponentInteraction_gen_config
variables:
PROJECTNAME: "ProgramComponentInteraction"
ProgramComponentInteraction_assemble:
extends: .AssembleLibraryTemplate
dependencies:
- ProgramComponentInteraction_build
variables:
PROJECTNAME: "ProgramComponentInteraction"
## ThreadExample
ThreadExample_prep:
extends: .PrepareProjectTemplate
variables:
PROJECTNAME: ThreadExample
ThreadExample_gen_code:
extends: .GenerateCodeTemplate
dependencies:
- ThreadExample_prep
variables:
PROJECTNAME: ThreadExample
ThreadExample_gen_config:
extends: .GenerateConfigTemplate
dependencies:
- ThreadExample_prep
variables:
PROJECTNAME: ThreadExample
ThreadExample_build:
extends: .BuildProjectTemplate
dependencies:
- ThreadExample_gen_code
- ThreadExample_gen_config
variables:
PROJECTNAME: "ThreadExample"
ThreadExample_assemble:
extends: .AssembleLibraryTemplate
dependencies:
- ThreadExample_build
variables:
PROJECTNAME: "ThreadExample"
## CppDataTypeTest
CppDataTypeTest_prep:
extends: .PrepareProjectTemplate
variables:
PROJECTNAME: CppDataTypeTest
CppDataTypeTest_gen_code:
extends: .GenerateCodeTemplate
dependencies:
- CppDataTypeTest_prep
variables:
PROJECTNAME: CppDataTypeTest
CppDataTypeTest_gen_config:
extends: .GenerateConfigTemplate
dependencies:
- CppDataTypeTest_prep
variables:
PROJECTNAME: CppDataTypeTest
CppDataTypeTest_build:
extends: .BuildProjectTemplate
dependencies:
- CppDataTypeTest_gen_code
- CppDataTypeTest_gen_config
variables:
PROJECTNAME: "CppDataTypeTest"
CppDataTypeTest_assemble:
extends: .AssembleLibraryTemplate
dependencies:
- CppDataTypeTest_build
variables:
PROJECTNAME: "CppDataTypeTest"
## NotificationExample
NotificationExample_prep:
extends: .PrepareProjectTemplate
variables:
PROJECTNAME: NotificationExample
NotificationExample_gen_code:
extends: .GenerateCodeTemplate
dependencies:
- NotificationExample_prep
variables:
PROJECTNAME: NotificationExample
NotificationExample_gen_config:
extends: .GenerateConfigTemplate
dependencies:
- NotificationExample_prep
variables:
PROJECTNAME: NotificationExample
NotificationExample_build:
extends: .BuildProjectTemplate
dependencies:
- NotificationExample_gen_code
- NotificationExample_gen_config
variables:
PROJECTNAME: "NotificationExample"
NotificationExample_assemble:
extends: .AssembleLibraryTemplate
dependencies:
- NotificationExample_build
variables:
PROJECTNAME: "NotificationExample"